diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index 891e458f33..47573e3a36 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -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}]