From 6f6b1111f099082e41ffc9a10590cf0c34f71eeb Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Thu, 18 Dec 2014 21:51:08 -0800 Subject: [PATCH] Mac: don't call xcrun on Tiger --- Library/Homebrew/os/mac.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index aa90cfc43b..50f4e6d9ad 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