aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorOleg Oshmyan2011-12-14 15:06:04 +0200
committerAdam Vandenberg2011-12-14 20:12:07 -0800
commit54cd7004b97aed643be4e98a253bfbfd446190c0 (patch)
tree9a6f15946aa5cd98b88e983a4f773fb015d14b75 /Library
parentbc229a38ad6f3107daf51cf52a5cb0e98c7b2e2d (diff)
downloadhomebrew-54cd7004b97aed643be4e98a253bfbfd446190c0.tar.bz2
Remove Clang-specific cflags when switching compilers
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/extend/ENV.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index 9af15c1e0..9f9579109 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -280,6 +280,7 @@ Please take one of the following actions:
cflags =~ %r{(-Xarch_i386 )-march=}
xarch = $1.to_s
remove_from_cflags %r{(-Xarch_i386 )?-march=\S*}
+ remove_from_cflags %r{( -Xclang \S+)+}
remove_from_cflags %r{-mssse3}
remove_from_cflags %r{-msse4(\.\d)?}
# Don't set -msse3 and older flags because -march does that for us