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.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-08-05 22:15:30 +09:00
parent 4281429412
commit f751c28ca4
+14
View File
@@ -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