summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-09-13 02:21:09 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-09-13 02:23:16 +0900
commitd4af765651193d342488cfbbf81f352f53d5377e (patch)
treec840a1ee570dbce13cfc91337f61b804a03dcf0a
parent5a0204bb45d38c5441604d72414f0f49193a114a (diff)
downloadmruby-d4af765651193d342488cfbbf81f352f53d5377e.tar.gz
mruby-d4af765651193d342488cfbbf81f352f53d5377e.zip
Remove `-std=gnu99` when `enable_cxx_abi`; ref #4703
To stop warnings since C++ do not accept `-std=gnu99` option.
-rw-r--r--lib/mruby/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mruby/build.rb b/lib/mruby/build.rb
index dfce42bea..5bedfc0e6 100644
--- a/lib/mruby/build.rb
+++ b/lib/mruby/build.rb
@@ -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