Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

Location:
EcnlProtoTool/trunk/mruby-1.3.0
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/mruby-1.3.0/tasks/mruby_build.rake

    r321 r331  
    8484        @gems, @libmruby = MRuby::Gem::List.new, []
    8585        @build_mrbtest_lib_only = false
     86        @cxx_exception_enabled = false
     87        @cxx_exception_disabled = false
    8688        @cxx_abi_enabled = false
    87         @cxx_exception_disabled = false
    8889        @enable_bintest = false
    8990        @enable_test = false
     
    111112
    112113    def disable_cxx_exception
     114      if @cxx_exception_enabled or @cxx_abi_enabled
     115        raise "cxx_exception already enabled"
     116      end
    113117      @cxx_exception_disabled = true
     118    end
     119
     120    def enable_cxx_exception
     121      return if @cxx_exception_enabled
     122      return if @cxx_abi_enabled
     123      if @cxx_exception_disabled
     124        raise "cxx_exception disabled"
     125      end
     126      @cxx_exception_enabled = true
     127      compilers.each { |c|
     128        c.defines += %w(MRB_ENABLE_CXX_EXCEPTION)
     129        c.flags << c.cxx_exception_flag
     130      }
     131      linker.command = cxx.command if toolchains.find { |v| v == 'gcc' }
     132    end
     133
     134    def cxx_exception_enabled?
     135      @cxx_exception_enabled
    114136    end
    115137
     
    119141
    120142    def enable_cxx_abi
    121       return if @cxx_exception_disabled or @cxx_abi_enabled
    122       compilers.each { |c| c.defines += %w(MRB_ENABLE_CXX_EXCEPTION) }
     143      return if @cxx_abi_enabled
     144      if @cxx_exception_enabled
     145        raise "cxx_exception already enabled"
     146      end
     147      compilers.each { |c|
     148        c.defines += %w(MRB_ENABLE_CXX_EXCEPTION MRB_ENABLE_CXX_ABI)
     149        c.flags << c.cxx_compile_flag
     150      }
     151      compilers.each { |c| c.flags << c.cxx_compile_flag }
    123152      linker.command = cxx.command if toolchains.find { |v| v == 'gcc' }
    124153      @cxx_abi_enabled = true
     
    136165#define __STDC_LIMIT_MACROS
    137166
     167#ifndef MRB_ENABLE_CXX_ABI
    138168extern "C" {
     169#endif
    139170#include "#{src}"
     171#ifndef MRB_ENABLE_CXX_ABI
    140172}
    141 
    142 #{src == "#{MRUBY_ROOT}/src/error.c"? 'mrb_int mrb_jmpbuf::jmpbuf_id = 0;' : ''}
     173#endif
    143174EOS
    144175      end
Note: See TracChangeset for help on using the changeset viewer.