From 63bc05379af907441e97bc07dcce75bc9822b3d3 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 7 Apr 2010 21:01:12 -0700 Subject: Move dump_build_env to utils and use during installs too. --- Library/Homebrew/utils.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Library/Homebrew/utils.rb') 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 -- cgit v1.2.3