mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #7483 from Bo98/std-cpu-flags
ENV/std: fix error when using older/no clang
This commit is contained in:
commit
4019f62e61
@ -112,7 +112,7 @@ module Stdenv
|
||||
def clang
|
||||
super
|
||||
replace_in_cflags(/-Xarch_#{Hardware::CPU.arch_32_bit} (-march=\S*)/, '\1')
|
||||
map = Hardware::CPU.optimization_flags
|
||||
map = Hardware::CPU.optimization_flags.dup
|
||||
if DevelopmentTools.clang_build_version < 700
|
||||
# Clang mistakenly enables AES-NI on plain Nehalem
|
||||
map[:nehalem] = "-march=nehalem -Xclang -target-feature -Xclang -aes"
|
||||
|
Loading…
x
Reference in New Issue
Block a user