diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-12-27 10:58:24 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-27 10:58:24 +0900 |
| commit | ef6805f599c19634809158da42ad7059ef0a9c5d (patch) | |
| tree | 0e4003ed50f9e65aebd5e7ead4323700d1cb0033 | |
| parent | d6b898685f5e6efeb3b4cadac60237d3c26abc38 (diff) | |
| parent | 9cde967321fe4bf200d4451859ead57b06e73027 (diff) | |
| download | mruby-ef6805f599c19634809158da42ad7059ef0a9c5d.tar.gz mruby-ef6805f599c19634809158da42ad7059ef0a9c5d.zip | |
Merge pull request #4864 from take-cheeze/enable_sanitizer_travis
Enable sanitizer in travis test
| -rw-r--r-- | travis_config.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/travis_config.rb b/travis_config.rb index 94cd4aadc..35a086e1f 100644 --- a/travis_config.rb +++ b/travis_config.rb @@ -4,7 +4,8 @@ MRuby::Build.new('debug') do |conf| # include all core GEMs conf.gembox 'full-core' - conf.cc.flags += %w(-Werror=declaration-after-statement) + conf.cc.flags += %w(-Werror=declaration-after-statement -fsanitize=address,undefined) + conf.linker.flags += %W(-fsanitize=address,undefined) conf.compilers.each do |c| c.defines += %w(MRB_GC_STRESS MRB_GC_FIXED_ARENA MRB_METHOD_CACHE) end @@ -19,6 +20,8 @@ MRuby::Build.new('full-debug') do |conf| # include all core GEMs conf.gembox 'full-core' conf.cc.defines += %w(MRB_ENABLE_DEBUG_HOOK) + conf.cc.flags += %w(-fsanitize=address,undefined) + conf.linker.flags += %W(-fsanitize=address,undefined) conf.enable_test end @@ -28,7 +31,8 @@ MRuby::Build.new do |conf| # include all core GEMs conf.gembox 'full-core' - conf.cc.flags += %w(-Werror=declaration-after-statement) + conf.cc.flags += %w(-Werror=declaration-after-statement -fsanitize=address,undefined) + conf.linker.flags += %W(-fsanitize=address,undefined) conf.compilers.each do |c| c.defines += %w(MRB_GC_FIXED_ARENA) end @@ -40,7 +44,8 @@ MRuby::Build.new('cxx_abi') do |conf| toolchain :gcc conf.gembox 'full-core' - conf.cc.flags += %w(-fpermissive) + conf.cc.flags += %w(-fpermissive -fsanitize=address,undefined) + conf.linker.flags += %W(-fsanitize=address,undefined) conf.compilers.each do |c| c.defines += %w(MRB_GC_FIXED_ARENA) end |
