Permalink
Browse files

Fixed language standard mode for GCC (cannot use gnu99 with C++, c++0…

…3 used instead)
  • Loading branch information...
dabroz authored and matz committed Nov 23, 2016
1 parent c2a60eb commit d7a6070d22c21bcb1237d903209114878930de95
Showing with 2 additions and 2 deletions.
  1. +2 −2 tasks/toolchains/gcc.rake
@@ -6,7 +6,7 @@ MRuby::Toolchain.new(:gcc) do |conf, _params|
cc.option_include_path = '-I%s'
cc.option_define = '-D%s'
cc.compile_options = '%{flags} -MMD -o %{outfile} -c %{infile}'
cc.cxx_compile_flag = '-x c++'
cc.cxx_compile_flag = '-x c++ -std=c++03'
end
[conf.cxx].each do |cxx|
@@ -16,7 +16,7 @@ MRuby::Toolchain.new(:gcc) do |conf, _params|
cxx.option_include_path = '-I%s'
cxx.option_define = '-D%s'
cxx.compile_options = '%{flags} -MMD -o %{outfile} -c %{infile}'
cxx.cxx_compile_flag = '-x c++'
cxx.cxx_compile_flag = '-x c++ -std=c++03'
end
conf.linker do |linker|

0 comments on commit d7a6070

Please sign in to comment.