From b1bc9ec809923782be6cfb7ff71e5c6cf9f98daa Mon Sep 17 00:00:00 2001
From: Mike McQuaid
Date: Thu, 31 Jan 2013 21:47:19 -0800
Subject: 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
---
Library/Homebrew/macos.rb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index 891e458f3..47573e3a3 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}]
--
cgit v1.2.3
ue='g3_v1_2'>g3_v1_2
blob: 59300863ab9effab787be3ffad97e5e2a5af6a45 (
plain)