From f751c28ca4b708400969e5b0c1c7f8af6701971b Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 5 Aug 2020 22:15:30 +0900 Subject: 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. --- target/host-m32.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/host-m32.rb (limited to 'target') 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 -- cgit v1.2.3