summaryrefslogtreecommitdiffhomepage
path: root/build_config
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-24 16:53:03 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-11-24 16:54:39 +0900
commite55abd239091f7353691c6635d7108391d7ef389 (patch)
tree1936f3a18d99051da979527386235b8b3094812f /build_config
parent36e3c4404af102411b6949e672aa6b73768945d5 (diff)
downloadmruby-e55abd239091f7353691c6635d7108391d7ef389.tar.gz
mruby-e55abd239091f7353691c6635d7108391d7ef389.zip
Fix compiler errors from `MRB_NO_FLOAT`; #5185
Also added `no-float.rb` target in `build_config`.
Diffstat (limited to 'build_config')
-rw-r--r--build_config/no-float.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/build_config/no-float.rb b/build_config/no-float.rb
new file mode 100644
index 000000000..57cca1688
--- /dev/null
+++ b/build_config/no-float.rb
@@ -0,0 +1,24 @@
+MRuby::Build.new("host") do |conf|
+ # load specific toolchain settings
+ toolchain :gcc
+ conf.gem :core => "mruby-bin-mrbc"
+end
+
+# Define cross build settings
+MRuby::CrossBuild.new('no-float') do |conf|
+ toolchain :gcc
+
+ # include the GEM box
+ conf.compilers.each do |c|
+ c.defines << "MRB_NO_FLOAT"
+ end
+
+ conf.gem :core => "mruby-bin-mruby"
+ conf.gem :core => "mruby-test"
+
+ conf.test_runner.command = 'env'
+
+ conf.enable_debug
+# conf.enable_bintest
+ conf.enable_test
+end