mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove -std=gnu99 when enable_cxx_abi; ref #4703
To stop warnings since C++ do not accept `-std=gnu99` option.
This commit is contained in:
+1
-1
@@ -162,8 +162,8 @@ 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')
|
||||
}
|
||||
compilers.each { |c| c.flags << c.cxx_compile_flag }
|
||||
linker.command = cxx.command if toolchains.find { |v| v == 'gcc' }
|
||||
@cxx_abi_enabled = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user