summaryrefslogtreecommitdiffhomepage
path: root/target/cross-32bit.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-08-16 17:56:50 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-10-12 16:21:40 +0900
commit1520c97e172484af7cbd0f51512cd3ac0025e228 (patch)
tree9f54c511eefa4b0f1371b36d8036c53c7f0ff961 /target/cross-32bit.rb
parent8a87549315d0c7fd984a8ad239ebe3dbab4d2855 (diff)
downloadmruby-1520c97e172484af7cbd0f51512cd3ac0025e228.tar.gz
mruby-1520c97e172484af7cbd0f51512cd3ac0025e228.zip
Add default `host` target for cross compiling.
You don't have to define explicit `host` build target any more.
Diffstat (limited to 'target/cross-32bit.rb')
-rw-r--r--target/cross-32bit.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/target/cross-32bit.rb b/target/cross-32bit.rb
index 310ffc833..82d5d023f 100644
--- a/target/cross-32bit.rb
+++ b/target/cross-32bit.rb
@@ -1,13 +1,14 @@
# Define cross build settings
-MRuby::CrossBuild.new('32bit') do |conf|
+MRuby::CrossBuild.new('cross-32bit') do |conf|
toolchain :gcc
conf.cc.flags << "-m32"
conf.linker.flags << "-m32"
- conf.build_mrbtest_lib_only
+ # conf.build_mrbtest_lib_only
- conf.gem 'examples/mrbgems/c_and_ruby_extension_example'
+ conf.gem :core => "mruby-bin-mruby"
+ conf.gem "#{MRUBY_ROOT}/examples/mrbgems/c_and_ruby_extension_example"
conf.test_runner.command = 'env'
end