aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-09-02 14:15:44 +0100
committerMax Howell2009-09-02 15:07:18 +0100
commitfbda4b45d6a55ff192a0fab46eb5f352130404ed (patch)
treea40e6869c09d28a16215bd94b8df3a57944ea66f /bin
parentf6743bbfd797cdc1904a2ecd3ae3def28d10b081 (diff)
downloadbrew-fbda4b45d6a55ff192a0fab46eb5f352130404ed.tar.bz2
Build optimisations for 64 bit Snow Leopard
Specifying -v/--verbose shows the build environment before the build MACOS_VERSION contains the floating point value of the OS X version A test for some floating point assumptions I make
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew10
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 8f38975ae..7769ed68a 100755
--- a/bin/brew
+++ b/bin/brew
@@ -72,7 +72,15 @@ begin
(HOMEBREW_PREFIX+'Library'+'Formula').children.each {|f| puts f.basename('.rb') }
exit 0
end
-
+
+ if ARGV.verbose?
+ require 'brewkit'
+ ohai "Build Environment"
+ %w[CFLAGS LDFLAGS CPPFLAGS MAKEFLAGS CC CXX].each do |f|
+ puts "#{f}: #{ENV[f]}" unless ENV[f].to_s.empty?
+ end
+ end
+
# we need to ensure a pristine ENV for each process or the formula
# will start with the ENV from the previous build
ARGV.formulae.each do |f|