aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-02-02 14:08:21 -0600
committerMisty De Meo2012-02-02 14:08:49 -0600
commit706da00b72fac9707aa8d0fa2eeddb3dffb3f88c (patch)
treed5c48642ad4ce83d8d8f18921586f48548f66a8d /Library
parentb6fa08f2d2238acec1735a5928dcb5b119ec17a7 (diff)
downloadbrew-706da00b72fac9707aa8d0fa2eeddb3dffb3f88c.tar.bz2
doctor: remove gcc-4.2 warning on Xcode 4.2+
Re: Homebrew/homebrew#9925, many others.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 5ba57173b..41a6dfb89 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -182,11 +182,13 @@ def check_gcc_versions
gcc_40 = MacOS.gcc_40_build_version
if gcc_42 == nil
- puts <<-EOS.undent
- We couldn't detect gcc 4.2.x. Some formulae require this compiler.
- NOTE: Versions of XCode newer than 4.2 don't include gcc 4.2.x.
+ # Don't show this warning on Xcode 4.2+
+ if MacOS.xcode_version < "4.2"
+ puts <<-EOS.undent
+ We couldn't detect gcc 4.2.x. Some formulae require this compiler.
- EOS
+ EOS
+ end
elsif gcc_42 < RECOMMENDED_GCC_42
puts <<-EOS.undent
Your gcc 4.2.x version is older than the recommended version. It may be advisable