aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorMax Howell2012-09-13 08:53:35 -0400
committerMax Howell2012-09-13 08:53:35 -0400
commitef8a720caa85ae96766bcce331e4d4ee88fc9a6e (patch)
tree3b715ee7fc9e4eba9a632e0b5c713657b6dc9c09 /Library/ENV
parentdd917bc105860146f50ab9103760bd1704995247 (diff)
downloadbrew-ef8a720caa85ae96766bcce331e4d4ee88fc9a6e.tar.bz2
Fixes universal builds; Fixes Homebrew/homebrew#14845
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index 18ab4aca2..158c187bb 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -120,12 +120,12 @@ class Cmd
if cccfg? 'Ob'
%w{-mtune=generic -Oz}
elsif cccfg? 'O'
- u = '-arch i386 -arch x86_64' if cccfg? 'u'
- c = case tool when 'clang', 'clang++' then '-march=native' end
+ u = %w{-arch i386 -arch x86_64} if cccfg? 'u'
+ c = '-march=native' if tool =~ /clang/
%w{-pipe -w -Os} << u << c
else
[]
- end
+ end.flatten
end
def syslibpath
# We reject brew's lib as we explicitly add this as a -L flag, thus it