From cd3dc666964b38d0b4045c97db3bc654f280c13f Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 25 Sep 2013 08:35:06 -0700 Subject: [PATCH] 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. --- Library/ENV/4.3/xcrun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun index 39821c8337..16600e2403 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}"