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
commita67f150796c68d0f4356bd583fa34ccb1609cf01 (patch)
tree069bffcfad80a00c0fa97ff0a4c2f11a9feb0b43 /Library
parent3684d35e47cd2b162a71ac094cbcfa037462dd95 (diff)
downloadhomebrew-a67f150796c68d0f4356bd583fa34ccb1609cf01.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