aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-07-20 23:26:11 -0700
committerAdam Vandenberg2011-07-21 08:10:33 -0700
commitfbff2ee8538aac440e913706b3430c5315e3d1d8 (patch)
tree9c99c12e766950f2890855d66b32369d64619e17 /Library
parent92b9edd34ba32cc0942588de39da5dd2d74ddb80 (diff)
downloadbrew-fbff2ee8538aac440e913706b3430c5315e3d1d8.tar.bz2
Retire check for GCC 4.0 under XCode 4.x
XCode 4.x only includes GCC 4.2. Therefore, having `brew doctor` report that GCC 4.0 is missing only spreads fear, uncertainty and doubt over a situation that is status quo. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 715edd64f..4da602914 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -194,17 +194,19 @@ def check_gcc_versions
EOS
end
- if gcc_40 == nil
- puts <<-EOS.undent
- We couldn't detect gcc 4.0.x. Some formulae require this compiler.
+ if MacOS.xcode_version < "4.0"
+ if gcc_40 == nil
+ puts <<-EOS.undent
+ We couldn't detect gcc 4.0.x. Some formulae require this compiler.
- EOS
- elsif gcc_40 < RECOMMENDED_GCC_40
- puts <<-EOS.undent
- Your gcc 4.0.x version is older than the recommended version. It may be advisable
- to upgrade to the latest release of Xcode.
+ EOS
+ elsif gcc_40 < RECOMMENDED_GCC_40
+ puts <<-EOS.undent
+ Your gcc 4.0.x version is older than the recommended version. It may be advisable
+ to upgrade to the latest release of Xcode.
- EOS
+ EOS
+ end
end
end