mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user