diff options
| author | Misty De Meo | 2013-05-20 19:35:07 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-05-20 23:25:15 -0500 |
| commit | 7780e131820aab12ead852cd489e774ce764c247 (patch) | |
| tree | f394e5d23cd27118bbaa2d65b10979b4b0b28f99 /Library/Homebrew/exceptions.rb | |
| parent | 29590171230e4a60d0aa43480825de4b131753be (diff) | |
| download | homebrew-7780e131820aab12ead852cd489e774ce764c247.tar.bz2 | |
CompilerSelector: raise when no compatible compiler
This replaces the old behaviour of falling back to the original
compiler with no messaging.
Fixes #19170.
Fixes mistydemeo/tigerbrew#45.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 4f1fafdce..0dbdb8b1d 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -160,6 +160,26 @@ class BuildError < Homebrew::InstallationError end end +# raised by CompilerSelector if the formula fails with all of +# the compilers available on the user's system +class CompilerSelectionError < StandardError + def message + if MacOS.version > :tiger then <<-EOS.undent + This formula cannot be built with any available compilers. + To install this formula, you may need to: + brew tap homebrew/dupes + brew install apple-gcc42 + EOS + # tigerbrew has a separate apple-gcc42 for Xcode 2.5 + else <<-EOS.undent + This formula cannot be built with any available compilers. + To install this formula, you need to: + brew install apple-gcc42 + EOS + end + end +end + # raised in CurlDownloadStrategy.fetch class CurlDownloadStrategyError < RuntimeError end |
