aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMisty De Meo2014-12-18 21:51:08 -0800
committerMisty De Meo2016-04-22 22:37:21 -0700
commit6f6b1111f099082e41ffc9a10590cf0c34f71eeb (patch)
tree8e57e113a2646268eb79fea27d96634d80b8b488 /Library/Homebrew
parent6b8af260c25528ae0685f885cad9754bd0e3785b (diff)
downloadbrew-6f6b1111f099082e41ffc9a10590cf0c34f71eeb.tar.bz2
Mac: don't call xcrun on Tiger
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/os/mac.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index aa90cfc43..50f4e6d9a 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -48,7 +48,8 @@ module OS
# Homebrew GCCs most frequently; much faster to check this before xcrun
elsif (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
path
- else
+ # xcrun was introduced in Xcode 3 on Leopard
+ elsif MacOS.version > :tiger
path = Utils.popen_read("/usr/bin/xcrun", "-no-cache", "-find", tool).chomp
Pathname.new(path) if File.executable?(path)
end