mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
build: Support running tests with memory sanitizers
When memory sanitizers are set, tests may fail because we are indirectly LD_PRELOAD'ing (through umockdev). While we could ensure that sanitizer libraries are loaded first, it's just something we don't care because we don't want to test the launcher wrappers themselves. So, let's just ignore the link order and live with it
This commit is contained in:
committed by
Marco Trevisan
parent
6b914a2070
commit
830a9977c0
@@ -21,6 +21,12 @@ datadir = prefix / get_option('datadir')
|
||||
cc = meson.get_compiler('c')
|
||||
cpp = meson.get_compiler('cpp')
|
||||
host_system = host_machine.system()
|
||||
|
||||
libfprint_sanitizers = get_option('b_sanitize').split(',')
|
||||
if libfprint_sanitizers == ['none']
|
||||
libfprint_sanitizers = []
|
||||
endif
|
||||
|
||||
glib_min_version = '2.68'
|
||||
|
||||
glib_version_def = 'GLIB_VERSION_@0@_@1@'.format(
|
||||
|
||||
Reference in New Issue
Block a user