Exception: CompilerSelectionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
Library/Homebrew/exceptions.rb

Overview

Raised by CompilerSelector if the formula fails with all of the compilers available on the user's system.

Instance Method Summary collapse

Constructor Details

#initialize(formula) ⇒ CompilerSelectionError

Returns a new instance of CompilerSelectionError.


519
520
521
522
523
524
# File 'Library/Homebrew/exceptions.rb', line 519

def initialize(formula)
  super <<~EOS
    #{formula.full_name} cannot be built with any available compilers.
    #{DevelopmentTools.custom_installation_instructions}
  EOS
end