Superenv: determine_optflags should return a string
This is saved in HOMEBREW_OPTFLAGS and later mutated by ENV.universal_binary, so if this returns nil the sub will fail.
This commit is contained in:
parent
ec852045b1
commit
48cd833a15
@ -207,8 +207,11 @@ module Superenv
|
|||||||
Hardware::CPU.optimization_flags.fetch(arch)
|
Hardware::CPU.optimization_flags.fetch(arch)
|
||||||
elsif Hardware::CPU.intel? && !Hardware::CPU.sse4?
|
elsif Hardware::CPU.intel? && !Hardware::CPU.sse4?
|
||||||
Hardware::CPU.optimization_flags.fetch(Hardware.oldest_cpu)
|
Hardware::CPU.optimization_flags.fetch(Hardware.oldest_cpu)
|
||||||
|
elsif compiler == :clang
|
||||||
|
"-march=native"
|
||||||
|
# This is mutated elsewhere, so return an empty string in this case
|
||||||
else
|
else
|
||||||
"-march=native" if compiler == :clang
|
""
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user