Don't let xcrun find superenv tools.

Causes an infinite loop when trying to find e.g. missing gcc.

Closes Homebrew/homebrew#17426
References Homebrew/homebrew#17455
This commit is contained in:
Mike McQuaid 2013-01-31 21:47:19 -08:00
parent e851e88863
commit b1bc9ec809

View File

@ -39,6 +39,9 @@ module MacOS extend self
`/usr/bin/xcrun -find #{tool} 2>/dev/null`.chomp
end
# If xcrun finds a superenv tool then discard the result.
xcrun_path = nil if xcrun_path.include? HOMEBREW_PREFIX+"Library/ENV"
paths = %W[#{xcrun_path}
#{dev_tools_path}/#{tool}
#{xctoolchain_path}/usr/bin/#{tool}]