summaryrefslogtreecommitdiffhomepage
path: root/target
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-07 23:00:15 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:31 +0900
commit3ad6bbc40c87f24819c6d8f25446bc74d348c822 (patch)
tree5e4eb1b04861087e1d51a342be5736d0cfc8944c /target
parent67d92c48b5c6d9a1ca15ac431bead11fbfe2868b (diff)
downloadmruby-3ad6bbc40c87f24819c6d8f25446bc74d348c822.tar.gz
mruby-3ad6bbc40c87f24819c6d8f25446bc74d348c822.zip
Add `target/host-cxx.rb` to compile `mruby` with `cxx_abi`.
Diffstat (limited to 'target')
-rw-r--r--target/host-cxx.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/host-cxx.rb b/target/host-cxx.rb
new file mode 100644
index 000000000..ae05e63c2
--- /dev/null
+++ b/target/host-cxx.rb
@@ -0,0 +1,13 @@
+MRuby::Build.new do |conf|
+ toolchain :gcc
+
+ enable_debug
+ # include the default GEMs
+ conf.gembox 'full-core'
+
+ # C compiler settings
+ conf.cc.defines = %w(MRB_ENABLE_DEBUG_HOOK)
+ conf.enable_debug
+ conf.enable_cxx_abi
+ conf.enable_test
+end