Class: ExtPP::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/extpp/compiler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cxx_flags) ⇒ Compiler

Returns a new instance of Compiler.



6
7
8
# File 'lib/extpp/compiler.rb', line 6

def initialize(cxx_flags)
  @cxx_flags = cxx_flags
end

Instance Attribute Details

#cxx_flagsObject (readonly)

Returns the value of attribute cxx_flags.



5
6
7
# File 'lib/extpp/compiler.rb', line 5

def cxx_flags
  @cxx_flags
end

Instance Method Details

#checkObject



14
15
16
17
# File 'lib/extpp/compiler.rb', line 14

def check
  check_debug_build
  check_version
end

#gcc?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/extpp/compiler.rb', line 10

def gcc?
  RbConfig::CONFIG["GCC"] == "yes"
end