Simplify passing archflags to cc wrapper
This commit is contained in:
parent
e0d2492247
commit
0a236abe53
@ -189,7 +189,7 @@ class Cmd
|
|||||||
end
|
end
|
||||||
def archflags
|
def archflags
|
||||||
args = []
|
args = []
|
||||||
ENV['HOMEBREW_ARCHS'].split(',').each { |a| args << "-arch" << a } if cccfg? 'u'
|
args.concat ENV['HOMEBREW_ARCHFLAGS'].split(' ') if cccfg? 'u'
|
||||||
args
|
args
|
||||||
end
|
end
|
||||||
def syslibpath
|
def syslibpath
|
||||||
|
|||||||
@ -257,7 +257,7 @@ module Superenv
|
|||||||
end
|
end
|
||||||
|
|
||||||
def universal_binary
|
def universal_binary
|
||||||
self['HOMEBREW_ARCHS'] = Hardware::CPU.universal_archs.join(',')
|
self['HOMEBREW_ARCHFLAGS'] = Hardware::CPU.universal_archs.as_arch_flags
|
||||||
append 'HOMEBREW_CCCFG', "u", ''
|
append 'HOMEBREW_CCCFG', "u", ''
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user