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:
parent
e851e88863
commit
b1bc9ec809
@ -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}]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user