summaryrefslogtreecommitdiffhomepage
path: root/tasks/mruby_build.rake
diff options
context:
space:
mode:
authorTomasz Dąbrowski <[email protected]>2016-11-23 11:59:26 +0100
committerYukihiro "Matz" Matsumoto <[email protected]>2016-11-24 09:28:00 +0900
commit44c3859a9725a5fb41e374ba91b52459498b8f17 (patch)
tree3900834fc0f823d6fc73059bee13d6b7a2049913 /tasks/mruby_build.rake
parent18757c8f7be05d9bc8d850180ada4d3fa1fc018d (diff)
downloadmruby-44c3859a9725a5fb41e374ba91b52459498b8f17.tar.gz
mruby-44c3859a9725a5fb41e374ba91b52459498b8f17.zip
Fix for compiling mruby as C++ on Visual Studio toolchain
Diffstat (limited to 'tasks/mruby_build.rake')
-rw-r--r--tasks/mruby_build.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake
index cde996aae..bd911493d 100644
--- a/tasks/mruby_build.rake
+++ b/tasks/mruby_build.rake
@@ -120,7 +120,7 @@ module MRuby
def enable_cxx_abi
return if @cxx_exception_disabled or @cxx_abi_enabled
compilers.each { |c| c.defines += %w(MRB_ENABLE_CXX_EXCEPTION) }
- compilers.each { |c| c.flags << '-x c++'}
+ compilers.each { |c| c.flags << c.cxx_compile_flag }
linker.command = cxx.command if toolchains.find { |v| v == 'gcc' }
@cxx_abi_enabled = true
end