Exception: CompilerSelectionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
brew/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



487
488
489
490
491
492
# File 'brew/Library/Homebrew/exceptions.rb', line 487

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