Update CompilerSelectionError
Fixes mistydemeo/tigerbrew#207. Fixes mistydemeo/tigerbrew#330.
This commit is contained in:
parent
2008c880dd
commit
9ead6bc2f8
@ -457,11 +457,23 @@ end
|
|||||||
# the compilers available on the user's system
|
# the compilers available on the user's system
|
||||||
class CompilerSelectionError < RuntimeError
|
class CompilerSelectionError < RuntimeError
|
||||||
def initialize(formula)
|
def initialize(formula)
|
||||||
super <<-EOS.undent
|
if MacOS.version > :tiger
|
||||||
#{formula.full_name} cannot be built with any available compilers.
|
super <<-EOS.undent
|
||||||
To install this formula, you may need to:
|
#{formula.full_name} cannot be built with any available compilers.
|
||||||
brew install gcc
|
To install this formula, you may need to:
|
||||||
EOS
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user