mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Fix Hardware::CPU::features
on macOS
This commit is contained in:
parent
dd04fb5ab6
commit
ff79015373
@ -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.
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user