Simplify passing archflags to cc wrapper

This commit is contained in:
Jack Nagel 2013-11-20 12:54:34 -06:00
parent e0d2492247
commit 0a236abe53
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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