diff options
| author | Tomasz Dąbrowski <[email protected]> | 2016-11-23 12:12:18 +0100 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-11-24 09:28:00 +0900 |
| commit | d7a6070d22c21bcb1237d903209114878930de95 (patch) | |
| tree | bc0d17be6def9f321bde2b35c6c29b21d883f798 /tasks | |
| parent | c2a60eb8aff29ef73d3b4feb7818b59fb5dd95bd (diff) | |
| download | mruby-d7a6070d22c21bcb1237d903209114878930de95.tar.gz mruby-d7a6070d22c21bcb1237d903209114878930de95.zip | |
Fixed language standard mode for GCC (cannot use gnu99 with C++, c++03 used instead)
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/toolchains/gcc.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tasks/toolchains/gcc.rake b/tasks/toolchains/gcc.rake index e4680b632..59ae015ac 100644 --- a/tasks/toolchains/gcc.rake +++ b/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| |
