Unverified Commit ef6805f5 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4864 from take-cheeze/enable_sanitizer_travis

Enable sanitizer in travis test
parents d6b89868 9cde9673
......@@ -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
......
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