aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorMisty De Meo2015-06-11 13:30:40 -0700
committerMisty De Meo2016-04-22 22:37:21 -0700
commit9ead6bc2f8c408e31a092c02b478775927298a26 (patch)
treeb0f7cd490790da472cbe469de53ab5253e20f9c2 /Library/Homebrew/exceptions.rb
parent2008c880dd4b0877fbe0a61e6ae9345e77b836f6 (diff)
downloadbrew-9ead6bc2f8c408e31a092c02b478775927298a26.tar.bz2
Update CompilerSelectionError
Fixes mistydemeo/tigerbrew#207. Fixes mistydemeo/tigerbrew#330.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb22
1 files changed, 17 insertions, 5 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 144f70768..0dc48f234 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -457,11 +457,23 @@ end
# the compilers available on the user's system
class CompilerSelectionError < RuntimeError
def initialize(formula)
- super <<-EOS.undent
- #{formula.full_name} cannot be built with any available compilers.
- To install this formula, you may need to:
- brew install gcc
- EOS
+ if MacOS.version > :tiger
+ super <<-EOS.undent
+ #{formula.full_name} cannot be built with any available compilers.
+ To install this formula, you may need to:
+ brew install gcc
+ EOS
+ # Tiger doesn't ship with apple-gcc42, and this is required to build
+ # some software that doesn't build properly with FSF GCC.
+ else
+ super <<-EOS.undent
+ #{formula.full_name} cannot be built with any available compilers.
+ To install this formula, you may need to either:
+ brew install apple-gcc42
+ or:
+ brew install gcc
+ EOS
+ end
end
end