diff options
| author | Max Howell | 2009-12-30 19:21:48 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-30 20:52:09 +0000 |
| commit | 23e2029932120adfa2c6eae4aa67df1265d54c66 (patch) | |
| tree | 60a4032d6d671ace4f9b24e2816cd98448ff085e /Library | |
| parent | 8032b9bdcf0c912dc1eeb9aa94f74a2dfda59f4f (diff) | |
| download | homebrew-23e2029932120adfa2c6eae4aa67df1265d54c66.tar.bz2 | |
Xcode is still installed, even if it's as old as 3.0
Instead tell them to upgrade.
Problem was Xcode 3.0 didn't come with GCC 4.2.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 8fba9e732..774ea8093 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -465,6 +465,12 @@ def gcc_build `/usr/bin/gcc-4.2 -v 2>&1` =~ /build (\d{4,})/ if $1 $1.to_i + elsif system "/usr/bin/which gcc" + # Xcode 3.0 didn't come with gcc-4.2 + # We can't change the above regex to use gcc because the version numbers + # are different and thus, not useful. + # FIXME I bet you 20 quid this causes a side effect — magic values tend to + 401 else nil end |
