source: EcnlProtoTool/trunk/mruby-1.2.0/tasks/toolchains/emscripten.rake@ 281

Last change on this file since 281 was 281, checked in by coas-nagasima, 7 years ago

mrbc.jsをemscriptenでビルド出来るようmrubyのビルドファイルを更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby
File size: 514 bytes
Line 
1MRuby::Toolchain.new(:emscripten) do |conf|
2 toolchain :gcc
3
4 conf.cc do |cc|
5 cc.command = "emcc"
6 cc.flags.push(%w(-Wall -Werror-implicit-function-declaration -O0))
7 cc.flags[0].delete_at(cc.flags[0].rindex("-Og"))
8 end
9
10 conf.cxx do |cxx|
11 cxx.command = "emcc"
12 cxx.flags.push(%w(-Wall -Werror-implicit-function-declaration -O0))
13 cxx.flags[0].delete_at(cxx.flags[0].rindex("-Og"))
14 end
15
16 conf.linker.command = "emcc"
17 conf.archiver.command = "emar"
18 conf.exts.executable = '.js'
19end
Note: See TracBrowser for help on using the repository browser.