diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-01-07 08:37:00 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-01-07 08:37:18 +0100 |
commit | feda4fd70f592d845fce374b0e9bb38f05f26656 (patch) | |
tree | 837e96518394b5c84caa0092e82625098d3b8458 | |
parent | 59af3b7e7b9f73de9ff80ae91cd42085b26d840d (diff) | |
download | fiv-feda4fd70f592d845fce374b0e9bb38f05f26656.tar.gz fiv-feda4fd70f592d845fce374b0e9bb38f05f26656.tar.xz fiv-feda4fd70f592d845fce374b0e9bb38f05f26656.zip |
Don't force sanitizers in debug builds
-rw-r--r-- | meson.build | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/meson.build b/meson.build index de1adfa..cab46ad 100644 --- a/meson.build +++ b/meson.build @@ -7,12 +7,15 @@ add_project_arguments( language : 'c', ) -if get_option('buildtype').startswith('debug') - flags = meson.get_compiler('c').get_supported_arguments( - '-fsanitize=address,undefined') - add_project_arguments(flags, language : ['c']) - add_project_link_arguments(flags, language : ['c']) -endif +# This, annoyingly, enables the leak sanitizer by default, +# which requires some tuning to not stand in the way. +# Use -Db_sanitize=address,undefined and adjust LSAN_OPTIONS yourself. +#if get_option('buildtype').startswith('debug') +# flags = meson.get_compiler('c').get_supported_arguments( +# '-fsanitize=address,undefined') +# add_project_arguments(flags, language : ['c']) +# add_project_link_arguments(flags, language : ['c']) +#endif lcms2 = dependency('lcms2', required : get_option('lcms2')) # Note that only libraw_r is thread-safe, but we'll just run it out-of process. |