Mac: don't call xcrun on Tiger
This commit is contained in:
parent
6b8af260c2
commit
6f6b1111f0
@ -48,7 +48,8 @@ module OS
|
|||||||
# Homebrew GCCs most frequently; much faster to check this before xcrun
|
# Homebrew GCCs most frequently; much faster to check this before xcrun
|
||||||
elsif (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
|
elsif (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
|
||||||
path
|
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
|
path = Utils.popen_read("/usr/bin/xcrun", "-no-cache", "-find", tool).chomp
|
||||||
Pathname.new(path) if File.executable?(path)
|
Pathname.new(path) if File.executable?(path)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user