From 32200f1eb97f689c3e159a8e29120f1433627c5c Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 9 Mar 2025 17:14:46 +0900 Subject: [PATCH] build_config/no-float.rb: test build for MRB_NO_FLOAT mruby allows to disable floating point numbers. We have add a build configuration to test mruby build without floating point numbers. --- build_config/no-float.rb | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 build_config/no-float.rb diff --git a/build_config/no-float.rb b/build_config/no-float.rb new file mode 100644 index 000000000..e0738cac4 --- /dev/null +++ b/build_config/no-float.rb @@ -0,0 +1,17 @@ +# Define cross build settings +MRuby::CrossBuild.new('no-float') do |conf| + conf.toolchain + + # Add configuration + conf.compilers.each do |c| + c.defines << "MRB_NO_FLOAT" + end + + conf.gem :core => "mruby-bin-mruby" + + conf.test_runner.command = 'env' + + conf.enable_debug +# conf.enable_bintest + conf.enable_test +end