diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index c3d92eb374..9e31caec6d 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -145,7 +145,7 @@ module OS return end - oclp_support_tier = Hardware::CPU.features.include?(:pclmulqdq) ? 2 : 3 + oclp_support_tier = ::Hardware::CPU.features.include?(:pclmulqdq) ? 2 : 3 <<~EOS You have booted macOS using OpenCore Legacy Patcher. diff --git a/Library/Homebrew/extend/os/mac/hardware/cpu.rb b/Library/Homebrew/extend/os/mac/hardware/cpu.rb index 43973e4db0..05116e8d84 100644 --- a/Library/Homebrew/extend/os/mac/hardware/cpu.rb +++ b/Library/Homebrew/extend/os/mac/hardware/cpu.rb @@ -40,7 +40,7 @@ module OS ::Hardware::CPU.sysctl_bool("sysctl.proc_translated") end - def self.features + def features @features ||= ::Hardware::CPU.sysctl_n( "machdep.cpu.features", "machdep.cpu.extfeatures",