From e55abd239091f7353691c6635d7108391d7ef389 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 24 Nov 2020 16:53:03 +0900 Subject: Fix compiler errors from `MRB_NO_FLOAT`; #5185 Also added `no-float.rb` target in `build_config`. --- build_config/no-float.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 build_config/no-float.rb (limited to 'build_config') 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 -- cgit v1.2.3