mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
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:
parent
a7ab382d90
commit
eeedb253b0
@ -2714,6 +2714,11 @@ if glib_gnu_cc_compiler and host_system != 'windows'
|
|||||||
|
|
||||||
if 'thread' in glib_sanitizers
|
if 'thread' in glib_sanitizers
|
||||||
test_preloaded_libs += 'tsan'
|
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
|
endif
|
||||||
|
|
||||||
# FIXME: Ideally meson should handle this for us
|
# FIXME: Ideally meson should handle this for us
|
||||||
|
Loading…
x
Reference in New Issue
Block a user