Skip to content
Snippets Groups Projects
Commit 48cd833a authored by Misty De Meo's avatar Misty De Meo
Browse files

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.
parent ec852045
No related branches found
No related tags found
No related merge requests found
......@@ -207,8 +207,11 @@ module Superenv
Hardware::CPU.optimization_flags.fetch(arch)
elsif Hardware::CPU.intel? && !Hardware::CPU.sse4?
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
"-march=native" if compiler == :clang
""
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment