Don't force sanitizers in debug builds
This commit is contained in:
parent
59af3b7e7b
commit
feda4fd70f
15
meson.build
15
meson.build
|
@ -7,12 +7,15 @@ add_project_arguments(
|
||||||
language : 'c',
|
language : 'c',
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_option('buildtype').startswith('debug')
|
# This, annoyingly, enables the leak sanitizer by default,
|
||||||
flags = meson.get_compiler('c').get_supported_arguments(
|
# which requires some tuning to not stand in the way.
|
||||||
'-fsanitize=address,undefined')
|
# Use -Db_sanitize=address,undefined and adjust LSAN_OPTIONS yourself.
|
||||||
add_project_arguments(flags, language : ['c'])
|
#if get_option('buildtype').startswith('debug')
|
||||||
add_project_link_arguments(flags, language : ['c'])
|
# flags = meson.get_compiler('c').get_supported_arguments(
|
||||||
endif
|
# '-fsanitize=address,undefined')
|
||||||
|
# add_project_arguments(flags, language : ['c'])
|
||||||
|
# add_project_link_arguments(flags, language : ['c'])
|
||||||
|
#endif
|
||||||
|
|
||||||
lcms2 = dependency('lcms2', required : get_option('lcms2'))
|
lcms2 = dependency('lcms2', required : get_option('lcms2'))
|
||||||
# Note that only libraw_r is thread-safe, but we'll just run it out-of process.
|
# Note that only libraw_r is thread-safe, but we'll just run it out-of process.
|
||||||
|
|
Loading…
Reference in New Issue