- Timestamp:
- Jul 9, 2020, 8:51:43 AM (4 years ago)
- Location:
- EcnlProtoTool/trunk/mruby-2.1.1
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-2.1.1/tasks/toolchains/emscripten.rake
r321 r439 1 MRuby::Toolchain.new(:emscripten) do |conf |2 toolchain :gcc 1 MRuby::Toolchain.new(:emscripten) do |conf, _params| 2 toolchain :gcc, default_command: 'emcc' 3 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")) 4 [conf.cc, conf.objc, conf.asm].each do |cc| 5 i = cc.flags[1][0].rindex("-Og") 6 cc.flags[1][0][i] = "-O3" if i 8 7 end 9 8 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 end15 16 conf.linker.command = "emcc"17 9 conf.archiver.command = "emar" 18 10 conf.exts.executable = '.js'
Note:
See TracChangeset
for help on using the changeset viewer.