aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-07-29 18:44:34 -0700
committerMisty De Meo2013-07-29 18:45:03 -0700
commitf274ad32504b9b04ea0cf041f375f3f11c9949fb (patch)
treedb12de8699eef911a3f4bf87f13339dffb30a797 /Library
parentb072da141f97e1d88c97beedf03b3b2deb8a38f4 (diff)
downloadbrew-f274ad32504b9b04ea0cf041f375f3f11c9949fb.tar.bz2
superenv: fix locating non-Xcode gcc-4.2
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/superenv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb
index 8bed66125..b15d40f6b 100644
--- a/Library/Homebrew/superenv.rb
+++ b/Library/Homebrew/superenv.rb
@@ -65,7 +65,7 @@ class << ENV
# Homebrew's apple-gcc42 will be outside the PATH in superenv,
# so xcrun may not be able to find it
- if ENV['HOMEBREW_CC'] == 'gcc-4.2' && !MacOS.locate('gcc-4.2')
+ if ENV['HOMEBREW_CC'] == 'gcc-4.2'
apple_gcc42 = Formula.factory('apple-gcc42') rescue nil
ENV.append('PATH', apple_gcc42.opt_prefix/'bin', ':') if apple_gcc42
end