Fixes universal builds; Fixes Homebrew/homebrew#14845
This commit is contained in:
parent
dd917bc105
commit
ef8a720caa
@ -120,12 +120,12 @@ class Cmd
|
|||||||
if cccfg? 'Ob'
|
if cccfg? 'Ob'
|
||||||
%w{-mtune=generic -Oz}
|
%w{-mtune=generic -Oz}
|
||||||
elsif cccfg? 'O'
|
elsif cccfg? 'O'
|
||||||
u = '-arch i386 -arch x86_64' if cccfg? 'u'
|
u = %w{-arch i386 -arch x86_64} if cccfg? 'u'
|
||||||
c = case tool when 'clang', 'clang++' then '-march=native' end
|
c = '-march=native' if tool =~ /clang/
|
||||||
%w{-pipe -w -Os} << u << c
|
%w{-pipe -w -Os} << u << c
|
||||||
else
|
else
|
||||||
[]
|
[]
|
||||||
end
|
end.flatten
|
||||||
end
|
end
|
||||||
def syslibpath
|
def syslibpath
|
||||||
# We reject brew's lib as we explicitly add this as a -L flag, thus it
|
# We reject brew's lib as we explicitly add this as a -L flag, thus it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user