aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/system_config.rb
diff options
context:
space:
mode:
authorMisty De Meo2016-11-03 16:52:58 -0700
committerMisty De Meo2016-11-10 15:09:36 -0800
commitd8c19fd7d5f658f17f63f1136de6f80a46be0d76 (patch)
treefcddd64449c5f99432af2d288345061974f80794 /Library/Homebrew/system_config.rb
parent4e3d23ad14b29832f14784939acc5afe2f1b28f8 (diff)
downloadbrew-d8c19fd7d5f658f17f63f1136de6f80a46be0d76.tar.bz2
SystemConfig: fix version reporting
Diffstat (limited to 'Library/Homebrew/system_config.rb')
-rw-r--r--Library/Homebrew/system_config.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/system_config.rb b/Library/Homebrew/system_config.rb
index 555493c0d..9c7a8d1b0 100644
--- a/Library/Homebrew/system_config.rb
+++ b/Library/Homebrew/system_config.rb
@@ -143,9 +143,9 @@ class SystemConfig
f.puts "HOMEBREW_BOTTLE_DOMAIN: #{BottleSpecification::DEFAULT_DOMAIN}"
f.puts hardware if hardware
f.puts "Homebrew Ruby: #{describe_homebrew_ruby}"
- f.puts "GCC-4.0: build #{gcc_40}" if gcc_40
- f.puts "GCC-4.2: build #{gcc_42}" if gcc_42
- f.puts "Clang: #{clang ? "#{clang} build #{clang_build}" : "N/A"}"
+ f.puts "GCC-4.0: build #{gcc_40}" unless gcc_40.null?
+ f.puts "GCC-4.2: build #{gcc_42}" unless gcc_42.null?
+ f.puts "Clang: #{clang.null? ? "N/A" : "#{clang} build #{clang_build}"}"
f.puts "Git: #{describe_git}"
f.puts "Perl: #{describe_perl}"
f.puts "Python: #{describe_python}"