diff options
| author | Oleg Oshmyan | 2011-12-14 15:06:04 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-12-14 20:12:07 -0800 |
| commit | 54cd7004b97aed643be4e98a253bfbfd446190c0 (patch) | |
| tree | 9a6f15946aa5cd98b88e983a4f773fb015d14b75 /Library | |
| parent | bc229a38ad6f3107daf51cf52a5cb0e98c7b2e2d (diff) | |
| download | homebrew-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.rb | 1 |
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 |
