diff --git a/Library/Homebrew/superenv.rb b/Library/Homebrew/superenv.rb index 8bed661255134329ca7e83f18ac03f6f105241ca..b15d40f6be248e3d1a9a11d48500af815ebc5409 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