mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Use enable_sanitizer to simplify build_config/clang-asan.rb
This commit is contained in:
@@ -1,21 +1,11 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user