Skip to content

Commit

Permalink
Fixes universal builds; Fixes Homebrew#14845
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Sep 13, 2012
1 parent 893e65b commit 1b72783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/ENV/4.3/cc
Expand Up @@ -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
Expand Down

0 comments on commit 1b72783

Please sign in to comment.