Revert "Enable sanitizer in travis test"; ref #4864

`gcc` sanitizer does not work on some environment (namely my localhost).
Although it works on Travis, it is not convenient that tests fail on the
local host. We keep sanitizer tests on the local (using `clang`).

This reverts commit 9cde9673.
parent d15e56da
...@@ -4,8 +4,7 @@ MRuby::Build.new('debug') do |conf| ...@@ -4,8 +4,7 @@ MRuby::Build.new('debug') do |conf|
# include all core GEMs # include all core GEMs
conf.gembox 'full-core' conf.gembox 'full-core'
conf.cc.flags += %w(-Werror=declaration-after-statement -fsanitize=address,undefined) conf.cc.flags += %w(-Werror=declaration-after-statement)
conf.linker.flags += %W(-fsanitize=address,undefined)
conf.compilers.each do |c| conf.compilers.each do |c|
c.defines += %w(MRB_GC_STRESS MRB_GC_FIXED_ARENA MRB_METHOD_CACHE) c.defines += %w(MRB_GC_STRESS MRB_GC_FIXED_ARENA MRB_METHOD_CACHE)
end end
...@@ -19,8 +18,7 @@ MRuby::Build.new('full-debug') do |conf| ...@@ -19,8 +18,7 @@ MRuby::Build.new('full-debug') do |conf|
# include all core GEMs # include all core GEMs
conf.gembox 'full-core' conf.gembox 'full-core'
conf.cc.flags += %w(-Werror=declaration-after-statement -fsanitize=address,undefined) conf.cc.flags += %w(-Werror=declaration-after-statement)
conf.linker.flags += %W(-fsanitize=address,undefined)
conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK) conf.cc.defines += %w(MRB_GC_STRESS MRB_METHOD_CACHE MRB_ENABLE_DEBUG_HOOK)
conf.enable_test conf.enable_test
...@@ -31,8 +29,7 @@ MRuby::Build.new do |conf| ...@@ -31,8 +29,7 @@ MRuby::Build.new do |conf|
# include all core GEMs # include all core GEMs
conf.gembox 'full-core' conf.gembox 'full-core'
conf.cc.flags += %w(-Werror=declaration-after-statement -fsanitize=address,undefined) conf.cc.flags += %w(-Werror=declaration-after-statement)
conf.linker.flags += %W(-fsanitize=address,undefined)
conf.compilers.each do |c| conf.compilers.each do |c|
c.defines += %w(MRB_GC_FIXED_ARENA) c.defines += %w(MRB_GC_FIXED_ARENA)
end end
...@@ -44,8 +41,7 @@ MRuby::Build.new('cxx_abi') do |conf| ...@@ -44,8 +41,7 @@ MRuby::Build.new('cxx_abi') do |conf|
toolchain :gcc toolchain :gcc
conf.gembox 'full-core' conf.gembox 'full-core'
conf.cc.flags += %w(-fpermissive -fsanitize=address,undefined) conf.cc.flags += %w(-fpermissive)
conf.linker.flags += %W(-fsanitize=address,undefined)
conf.compilers.each do |c| conf.compilers.each do |c|
c.defines += %w(MRB_GC_FIXED_ARENA) c.defines += %w(MRB_GC_FIXED_ARENA)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment