aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-14 09:56:28 -0700
committerAdam Vandenberg2010-04-14 09:56:28 -0700
commitf144dcab60215d698007d49281187c1e54fa96be (patch)
tree8564a7288e8f3a58ca1297111a70716d348c437e
parentde21400fd06a204cab82e1ca45834db607116fb9 (diff)
downloadbrew-f144dcab60215d698007d49281187c1e54fa96be.tar.bz2
Add PATH to --config and ENV dump.
A user's PATH can help diagnose ./configure and other problems in bug reports.
-rwxr-xr-xbin/brew3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 679c66cea..fc96bc1de 100755
--- a/bin/brew
+++ b/bin/brew
@@ -65,13 +65,14 @@ GCC-4.2: #{gcc_42 ? "build #{gcc_42}" : "N/A"} (#{RECOMMENDED_GCC_42} or newer r
LLVM: #{llvm ? "build #{llvm}" : "N/A" } #{llvm ? "(#{RECOMMENDED_LLVM} or newer recommended)" : "" }
MacPorts or Fink? #{macports_or_fink_installed?}
X11 installed? #{x11_installed?}
+PATH: #{ENV['PATH']}
EOS
end
def dump_build_env env
puts "\"--use-llvm\" was specified" if ARGV.include? '--use-llvm'
- %w[CC CXX LD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS MAKEFLAGS PKG_CONFIG_PATH HOMEBREW_USE_LLVM].each do |k|
+ %w[CC CXX LD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS MAKEFLAGS PATH PKG_CONFIG_PATH HOMEBREW_USE_LLVM].each do |k|
value = env[k]
puts "#{k}: #{value}" if value
end