Merge pull request #15680 from carlocab/ENV.O2
extend/ENV/super: add `ENV.O3`
This commit is contained in:
commit
0a37af54be
@ -375,6 +375,15 @@ module Superenv
|
|||||||
self["HOMEBREW_OPTIMIZATION_LEVEL"] = "O1"
|
self["HOMEBREW_OPTIMIZATION_LEVEL"] = "O1"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sig { params(block: T.nilable(T.proc.void)).void }
|
||||||
|
def O3(&block)
|
||||||
|
if block
|
||||||
|
with_env(HOMEBREW_OPTIMIZATION_LEVEL: "O3", &block)
|
||||||
|
else
|
||||||
|
self["HOMEBREW_OPTIMIZATION_LEVEL"] = "O3"
|
||||||
|
end
|
||||||
|
end
|
||||||
# rubocop: enable Naming/MethodName
|
# rubocop: enable Naming/MethodName
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user