diff options
| author | take-cheeze <[email protected]> | 2019-12-13 04:04:09 +0900 |
|---|---|---|
| committer | take-cheeze <[email protected]> | 2019-12-19 14:21:49 +0900 |
| commit | 9cde967321fe4bf200d4451859ead57b06e73027 (patch) | |
| tree | d22cd3af2f9c6604b2efe7700027180e497f4011 | |
| parent | 87809742f57fc78be9c17a0d5943dd12440a90db (diff) | |
| download | mruby-9cde967321fe4bf200d4451859ead57b06e73027.tar.gz mruby-9cde967321fe4bf200d4451859ead57b06e73027.zip | |
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 |
