build: move sanitizer tests to meson

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2023-01-09 15:31:51 +01:00
parent d67212d47f
commit 34f983d86f
7 changed files with 66 additions and 155 deletions

View file

@ -2,7 +2,7 @@ if not have_tools or targetos == 'windows' or get_option('gprof')
subdir_done()
endif
foreach cflag: config_host['QEMU_CFLAGS'].split()
foreach cflag: qemu_ldflags
if cflag.startswith('-fsanitize') and \
not cflag.contains('safe-stack') and not cflag.contains('cfi-icall')
message('Sanitizers are enabled ==> Disabled the qemu-iotests.')