diff options
| author | Jack Nagel | 2013-08-16 20:46:02 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-16 20:46:03 -0500 |
| commit | 1bcd428b8e867de1daae3446cb332828056f6d4c (patch) | |
| tree | 80a3094e805e6b07ec06737cb737e35b36327709 /Library | |
| parent | 1333b8d666a7ef7627aef4598c15e4605bd84e60 (diff) | |
| download | brew-1bcd428b8e867de1daae3446cb332828056f6d4c.tar.bz2 | |
Fix superenv arch flag handling
Fixes Homebrew/homebrew#21943.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/ENV/4.3/cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 561df96d7..62194c8dd 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -165,7 +165,7 @@ class Cmd args << '-march=native' if tool =~ /clang/ end - args += ENV['HOMEBREW_ARCHS'].split(',').map {|a| "-arch #{a}"} if cccfg? 'u' + ENV['HOMEBREW_ARCHS'].split(',').each { |a| args << "-arch" << a } if cccfg? 'u' args << "-std=#{@arg0}" if @arg0 =~ /c[89]9/ args end |
