aboutsummaryrefslogtreecommitdiffstats
path: root/Library/ENV
diff options
context:
space:
mode:
authorMisty De Meo2013-09-25 08:35:06 -0700
committerMisty De Meo2013-09-25 09:15:26 -0700
commit1bd8309ff2cdaa65ec03e9cd1685aeae615b11f0 (patch)
treef416f498a8372f0f799e34cdf277ad19a6f0494d /Library/ENV
parent43ea107602df6d1102e8a098d3ba3dd4dec76d37 (diff)
downloadhomebrew-1bd8309ff2cdaa65ec03e9cd1685aeae615b11f0.tar.bz2
Silence xcrun output in wrapper
Our wrapper always runs the real xcrun at least once, to try to find the path of the tool being run, but this meant that we were generating a huge number of error messages on every cc invocaton. Mostly this was annoying but harmless, but notably it managed to break the compilation of go.
Diffstat (limited to 'Library/ENV')
-rwxr-xr-xLibrary/ENV/4.3/xcrun2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun
index 39821c833..16600e240 100755
--- a/Library/ENV/4.3/xcrun
+++ b/Library/ENV/4.3/xcrun
@@ -20,7 +20,7 @@ def try path
end
arg0 = ARGV.shift
-try `/usr/bin/xcrun --find #{arg0}`.chomp
+try `/usr/bin/xcrun --find #{arg0} 2>/dev/null`.chomp
# Nuts, Xcode is not setup properly or something. Try to find the tools anyway!
try "#{ENV['HOMEBREW_DEVELOPER_DIR']}/usr/bin/#{arg0}"
try "#{ENV['HOMEBREW_DEVELOPER_DIR']}/Toolchains/XcodeDefault.xctoolchain/usr/bin/#{arg0}"