mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 21:19:58 -05:00
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.
This commit is contained in:
1 parent
43ea107602
commit
1bd8309ff2
1 file changed
+1
-1
@@ -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}"
|
||||
|
||||
Reference in new issue
Block a user