aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-07-08 12:21:47 -0500
committerJack Nagel2012-07-08 12:26:10 -0500
commit147861542911a78419f6fe2a0c16eb94c7a95b49 (patch)
tree00022d80645846af4825323aa909df6129b54787 /Library
parent63d77ac6dee4da6ec0ec519202f6832c97746265 (diff)
downloadbrew-147861542911a78419f6fe2a0c16eb94c7a95b49.tar.bz2
Display compiler build numbers in config dump
But only display them if they are out of sync with the corresponding Xcode version. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/--config.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/--config.rb b/Library/Homebrew/cmd/--config.rb
index 02e8021b9..f78c31f79 100644
--- a/Library/Homebrew/cmd/--config.rb
+++ b/Library/Homebrew/cmd/--config.rb
@@ -92,6 +92,13 @@ module Homebrew extend self
puts "Xcode: #{describe_xcode}"
puts "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby:\n #{RUBY_VERSION}-#{RUBY_PATCHLEVEL}" if RUBY_VERSION.to_f != 1.8
+ unless MacOS.compilers_standard?
+ puts "GCC-4.0: #{gcc_40 ? "build #{gcc_40}" : "N/A"}"
+ puts "GCC-4.2: #{gcc_42 ? "build #{gcc_42}" : "N/A"}"
+ puts "LLVM: #{llvm ? "build #{llvm}" : "N/A"}"
+ puts "Clang: #{clang ? "#{clang} build #{clang_build}" : "N/A"}"
+ end
+
ponk = macports_or_fink_installed?
puts "MacPorts/Fink: #{ponk}" if ponk