Sha256: 17b80b2cf4d079b37ce59cc6e04327490f27750511d77fda12ea98abfc0f040d

Contents?: true

Size: 528 Bytes

Versions: 2

Compression:

Stored size: 528 Bytes

Contents

boxings = %w[no word nan]
bits = [64, 32]
ints = [64, 32]

boxings.product(bits, ints) do |boxing, bit, int|
  next if boxing == "nan" && int == 64

  MRuby::Build.new("boxing-#{boxing}-m#{bit}-i#{int}") do |conf|
    conf.toolchain :gcc
    conf.gembox 'default'
    conf.compilers.each do |c|
      c.defines << "MRB_#{boxing.upcase}_BOXING"
      c.defines << "MRB_INT#{int}"
      c.flags << "-m#{bit}"
    end
    conf.linker.flags << "-m#{bit}"
    conf.enable_debug
    conf.enable_test
    conf.enable_bintest
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/mruby/build_config/boxing.rb
script_core-0.3.0 ext/enterprise_script_service/mruby/build_config/boxing.rb