Method: MRuby::Build#enable_cxx_abi

Defined in:
ext/enterprise_script_service/mruby/lib/mruby/build.rb

#enable_cxx_abiObject



217
218
219
220
221
222
223
224
225
226
227
228
229
# File 'ext/enterprise_script_service/mruby/lib/mruby/build.rb', line 217

def enable_cxx_abi
  return if @cxx_abi_enabled
  if @cxx_exception_enabled
    raise "cxx_exception already enabled"
  end
  compilers.each { |c|
    c.defines += %w(MRB_USE_CXX_EXCEPTION MRB_USE_CXX_ABI)
    c.flags << c.cxx_compile_flag
    c.flags = c.flags.flatten - c.cxx_invalid_flags.flatten
  }
  linker.command = cxx.command if toolchains.find { |v| v == 'gcc' }
  @cxx_abi_enabled = true
end