Commit d3a680cc authored by Philippe Antoine's avatar Philippe Antoine Committed by Max Kellermann

meson: set only sanitizers for fuzzer when unspecified

That is when meson option b_sanitize is not used
parent 62fc4d5c
...@@ -118,7 +118,10 @@ if get_option('buildtype') != 'debug' ...@@ -118,7 +118,10 @@ if get_option('buildtype') != 'debug'
endif endif
if get_option('fuzzer') if get_option('fuzzer')
fuzzer_flags = ['-fsanitize=fuzzer,address,undefined'] fuzzer_flags = ['-fsanitize=fuzzer']
if get_option('b_sanitize') == 'none'
fuzzer_flags += ['-fsanitize=address,undefined']
endif
add_global_arguments(fuzzer_flags, language: 'cpp') add_global_arguments(fuzzer_flags, language: 'cpp')
add_global_arguments(fuzzer_flags, language: 'c') add_global_arguments(fuzzer_flags, language: 'c')
add_global_link_arguments(fuzzer_flags, language: 'cpp') add_global_link_arguments(fuzzer_flags, language: 'cpp')
......
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