mruby · GitHub

Commit 32200f1

committed

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.

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • build_config

Lines changed: 17 additions & 0 deletions

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,17 @@

1+

# Define cross build settings

2+

MRuby::CrossBuild.new('no-float') do |conf|

3+

conf.toolchain

4+
5+

# Add configuration

6+

conf.compilers.each do |c|

7+

c.defines << "MRB_NO_FLOAT"

8+

end

9+
10+

conf.gem :core => "mruby-bin-mruby"

11+
12+

conf.test_runner.command = 'env'

13+
14+

conf.enable_debug

15+

# conf.enable_bintest

16+

conf.enable_test

17+

end

Read the original on github.com ↗