File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Library/Homebrew/extend/os/mac Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,13 @@ def check_for_opencore
145
145
return
146
146
end
147
147
148
+ oclp_support_tier = Hardware ::CPU . features . include? ( :pclmulqdq ) ? 2 : 3
149
+
148
150
<<~EOS
149
151
You have booted macOS using OpenCore Legacy Patcher.
150
152
We do not provide support for this configuration.
151
153
152
- #{ support_tier_message ( tier : 2 ) }
154
+ #{ support_tier_message ( tier : oclp_support_tier ) }
153
155
EOS
154
156
end
155
157
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def in_rosetta2?
40
40
::Hardware ::CPU . sysctl_bool ( "sysctl.proc_translated" )
41
41
end
42
42
43
- def features
43
+ def self . features
44
44
@features ||= ::Hardware ::CPU . sysctl_n (
45
45
"machdep.cpu.features" ,
46
46
"machdep.cpu.extfeatures" ,
You can’t perform that action at this time.
0 commit comments