build: Do not support building with both tracing and tsan enabled

It would just lead to failures we should not handle as tracing is
by design not meant to be thread-safe, but only debug friendly
This commit is contained in:
Marco Trevisan (Treviño) 2025-01-31 12:27:58 +01:00
parent a7ab382d90
commit eeedb253b0

View File

@ -2714,6 +2714,11 @@ if glib_gnu_cc_compiler and host_system != 'windows'
if 'thread' in glib_sanitizers
test_preloaded_libs += 'tsan'
if enable_dtrace
# Tracing is not meant to be threa-safe, so let's make it incompatible with tsan.
error('Using Tracing together with thread sanitizer is not supported.')
endif
endif
# FIXME: Ideally meson should handle this for us