Commit bad62239 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Use `enable_sanitizer` to simplify `build_config/clang-asan.rb`

parent af13cfb7
MRuby::Build.new do |conf|
toolchain :clang
conf.toolchain :clang
# include the GEM box
conf.gembox 'default'
# C compiler settings
conf.cc do |cc|
cc.flags << "-fsanitize=address,undefined"
cc.include_paths = ["#{root}/include"]
end
# Linker settings
conf.linker do |linker|
linker.flags << "-fsanitize=address,undefined"
end
# Turn on `enable_debug` for better debugging
enable_debug
conf.enable_sanitizer "address,undefined"
conf.enable_debug
conf.enable_bintest
conf.enable_test
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