Fix warnings for invalid C++ option with enable_cxx_abi; ref #3618, #4703

This commit is contained in:
KOBAYASHI Shuji
2019-09-13 17:14:37 +09:00
parent ad4bdda074
commit be76cec342
4 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ module MRuby
compilers.each { |c|
c.defines += %w(MRB_ENABLE_CXX_EXCEPTION MRB_ENABLE_CXX_ABI)
c.flags << c.cxx_compile_flag
c.flags.delete('-std=gnu99')
c.flags = c.flags.flatten - c.cxx_invalid_flags.flatten
}
linker.command = cxx.command if toolchains.find { |v| v == 'gcc' }
@cxx_abi_enabled = true