Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

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
     1MRuby::Toolchain.new(:emscripten) do |conf, _params|
     2  toolchain :gcc, default_command: 'emcc'
    33
    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
    87  end
    98
    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"
    179  conf.archiver.command = "emar"
    1810  conf.exts.executable = '.js'
Note: See TracChangeset for help on using the changeset viewer.