21 lines
528 B
Ruby
21 lines
528 B
Ruby
MRuby::Build.new do |conf|
|
|
toolchain :gcc
|
|
conf.gembox 'default'
|
|
end
|
|
|
|
MRuby::CrossBuild.new('wasm32-unknown-gnu') do |conf|
|
|
toolchain :clang
|
|
|
|
conf.gembox 'default'
|
|
conf.gem :github => 'take-cheeze/mruby-marshal'
|
|
conf.gem :github => 'monochromegane/mruby-time-strftime'
|
|
conf.gem :core => 'mruby-eval'
|
|
conf.cc.command = 'emcc'
|
|
conf.cc.flags = %W(-O3 -g0)
|
|
conf.cxx.command = 'em++'
|
|
conf.cxx.flags = %W(-O3 -g0)
|
|
|
|
conf.linker.command = 'emcc'
|
|
conf.archiver.command = 'emar'
|
|
end
|