diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV/super.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index a0efec453..940cc36d2 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -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 |
