diff options
| author | Jack Nagel | 2013-11-20 12:54:34 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-20 13:19:14 -0600 |
| commit | 0a236abe5330093703e61ebca33b939a4410d628 (patch) | |
| tree | 2cae98abe1c8c3655a59a80d55da9c0bf86dd153 /Library | |
| parent | e0d24922474f2a10b82b8dede1b54552ed72ebed (diff) | |
| download | brew-0a236abe5330093703e61ebca33b939a4410d628.tar.bz2 | |
Simplify passing archflags to cc wrapper
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/cc | 2 | ||||
| -rw-r--r-- | Library/Homebrew/extend/ENV/super.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 92b09a48c..59a52b02d 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -189,7 +189,7 @@ class Cmd end def archflags args = [] - ENV['HOMEBREW_ARCHS'].split(',').each { |a| args << "-arch" << a } if cccfg? 'u' + args.concat ENV['HOMEBREW_ARCHFLAGS'].split(' ') if cccfg? 'u' args end def syslibpath diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 9df429f32..1fb0b3abf 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -257,7 +257,7 @@ module Superenv end 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", '' end |
