diff options
| author | Adam Vandenberg | 2010-03-31 15:06:14 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-06 08:22:28 -0700 |
| commit | d6a4a20a216978c3a5e5d0c8c27b114d68fcd7db (patch) | |
| tree | 9d821e820e62aea4b79b7c3bd283b0701b152eb9 /Library | |
| parent | 84254c57b58a6425e90a7a11bf293a903f7d87c6 (diff) | |
| download | homebrew-d6a4a20a216978c3a5e5d0c8c27b114d68fcd7db.tar.bz2 | |
Check both gcc's
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew_doctor.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index 06b3ce36f..4109804b5 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -36,8 +36,17 @@ def brew_doctor check_for_stray_dylibs - if gcc_build < HOMEBREW_RECOMMENDED_GCC - puts "Your GCC version is older than the recommended version. It may be advisable" + gcc_42 = gcc_42_build + gcc_40 = gcc_40_build + + if gcc_42 < RECOMMENDED_GCC_42 + puts "Your gcc 4.2.x version is older than the recommended version. It may be advisable" + puts "to upgrade to the latest release of Xcode." + puts + end + + if gcc_40 < RECOMMENDED_GCC_40 + puts "Your gcc 4.0.x version is older than the recommended version. It may be advisable" puts "to upgrade to the latest release of Xcode." puts end |
