aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-07 21:01:12 -0700
committerAdam Vandenberg2010-05-06 07:23:59 -0700
commit63bc05379af907441e97bc07dcce75bc9822b3d3 (patch)
treea510fd0997e4a1396f99ac3fb0e3ab13aa6c3825 /Library/Homebrew/utils.rb
parentca7c750fe1b0b9ebbc9c45f30299f8b210720a48 (diff)
downloadhomebrew-63bc05379af907441e97bc07dcce75bc9822b3d3.tar.bz2
Move dump_build_env to utils and use during installs too.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 57f28f101..700b0acf1 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -213,3 +213,12 @@ def nostdout
end
end
end
+
+def dump_build_env env
+ puts "\"--use-llvm\" was specified" if ARGV.include? '--use-llvm'
+
+ %w[CC CXX LD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS MACOSX_DEPLOYMENT_TARGET MAKEFLAGS PATH PKG_CONFIG_PATH HOMEBREW_USE_LLVM].each do |k|
+ value = env[k]
+ puts "#{k}: #{value}" if value
+ end
+end \ No newline at end of file