Skip to content

Commit 2c9b094

Browse files
committed
os/mac/diagnostic: set OCLP Support Tiers
Signed-off-by: Patrick Linnane <[email protected]>
1 parent 76b3cf0 commit 2c9b094

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Library/Homebrew/extend/os/mac/diagnostic.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,13 @@ def check_for_opencore
145145
return
146146
end
147147

148+
oclp_support_tier = Hardware::CPU.features.include?(:pclmulqdq) ? 2 : 3
149+
148150
<<~EOS
149151
You have booted macOS using OpenCore Legacy Patcher.
150152
We do not provide support for this configuration.
151153
152-
#{support_tier_message(tier: 2)}
154+
#{support_tier_message(tier: oclp_support_tier)}
153155
EOS
154156
end
155157

Library/Homebrew/extend/os/mac/hardware/cpu.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def in_rosetta2?
4040
::Hardware::CPU.sysctl_bool("sysctl.proc_translated")
4141
end
4242

43-
def features
43+
def self.features
4444
@features ||= ::Hardware::CPU.sysctl_n(
4545
"machdep.cpu.features",
4646
"machdep.cpu.extfeatures",

0 commit comments

Comments
 (0)