summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-05 22:15:30 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:27 +0900
commitf751c28ca4b708400969e5b0c1c7f8af6701971b (patch)
tree4435f57198627cd886c0a71d4a6910f9c7b260a8
parent428142941240d5e01364aa2e87aa7864111b583b (diff)
downloadmruby-f751c28ca4b708400969e5b0c1c7f8af6701971b.tar.gz
mruby-f751c28ca4b708400969e5b0c1c7f8af6701971b.zip
Add `target/host-m32.rb` to compile mruby in 32bit mode.
Tested only on Linux. You need to install 32bit relate libraries, e.g. libc6-dev-i386.
-rw-r--r--target/host-m32.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/host-m32.rb b/target/host-m32.rb
new file mode 100644
index 000000000..d1cddc907
--- /dev/null
+++ b/target/host-m32.rb
@@ -0,0 +1,14 @@
+MRuby::Build.new do |conf|
+ # load specific toolchain settings
+ toolchain :gcc
+
+ # include the GEM box
+ conf.gembox 'full-core'
+
+ conf.cc.flags << '-m32'
+ conf.linker.flags << '-m32'
+
+ # Turn on `enable_debug` for better debugging
+ enable_debug
+ conf.enable_test
+end