diff options
| author | Misty De Meo | 2013-01-22 18:28:13 -0600 |
|---|---|---|
| committer | Misty De Meo | 2013-01-26 22:57:56 -0600 |
| commit | eb80cd17bc6fd709432b55d2c0079377b1687249 (patch) | |
| tree | df7d941442cba40f55260e932ee39b19f5f6faae /Library/ENV/4.3/cc | |
| parent | 032bfcdd8528b68305523c56c38fa98153c3d58c (diff) | |
| download | homebrew-eb80cd17bc6fd709432b55d2c0079377b1687249.tar.bz2 | |
superenv: --use-gcc should specify gcc-4.2
Since 'gcc' is a symlink to 'llvm-gcc' on Xcode 4.3+, --use-gcc and
--use-llvm were doing exactly the same thing. Combined with the
previous commit, this allows users with either a leftover
/usr/bin/gcc-4.2 or a homebrewed apple-gcc42 to build with gcc.
This doesn't however fix Xcode-only systems with apple-gcc42.
Fixes #17243.
Diffstat (limited to 'Library/ENV/4.3/cc')
| -rwxr-xr-x | Library/ENV/4.3/cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 69c1dd764..1f79602ff 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -60,8 +60,10 @@ class Cmd # the work since Makefiles are dumb and include a lot of excess flags. ENV['HOMEBREW_CC'] when 'c++' - if ENV['HOMEBREW_CC'] =~ /gcc/ + if ENV['HOMEBREW_CC'] =~ /llvm-gcc/ 'g++' + elsif ENV['HOMEBREW_CC'] =~ /gcc-4.2/ + 'g++-4.2' else 'clang++' end |
