aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2012-03-02 00:59:22 +0000
committerMax Howell2012-03-02 00:59:39 +0000
commit9d98450b90d5b7bc2edee82fa3e30736d4d8e659 (patch)
tree2f694a7736b53964a6921f6f5efd89a8c2f04579 /bin
parentfead26420bc9f44aa1ec1884ad58895e197a005d (diff)
downloadhomebrew-9d98450b90d5b7bc2edee82fa3e30736d4d8e659.tar.bz2
Scupper sourceable output if brew install is piped
`brew install > file` should not give "export CC=/foo" output on Build Failures. Also moved the "Using clang" output to brew when BuildError is thrown as that is where it is interesting, and not if you just do `brew --env`.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index e3539c4ae..462f6328b 100755
--- a/bin/brew
+++ b/bin/brew
@@ -118,6 +118,9 @@ rescue BuildError => e
ohai "Environment"
puts Homebrew.config_s
ohai "Build Flags"
+ puts %["--use-clang" was specified] if ARGV.include? '--use-clang'
+ puts %["--use-llvm" was specified] if ARGV.include? '--use-llvm'
+ puts %["--use-gcc" was specified] if ARGV.include? '--use-gcc'
Homebrew.dump_build_env e.env
puts
onoe e