From 11b933e64317c55a8b6a35a1d5b9aaff277ddbdd Mon Sep 17 00:00:00 2001 From: niels <> Date: Mon, 3 Nov 2025 20:30:45 +0100 Subject: [PATCH] add configure arg '--enable-threadsanitizer' --- veejay-current/veejay-server/configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/veejay-current/veejay-server/configure.ac b/veejay-current/veejay-server/configure.ac index 638b3fc3..7831b60f 100644 --- a/veejay-current/veejay-server/configure.ac +++ b/veejay-current/veejay-server/configure.ac @@ -43,7 +43,8 @@ dnl enable auto vectorization for libvjmem, libvje and libyuv AC_ARG_ENABLE([strict], AS_HELP_STRING([--enable-strict],[Compile in paranoia assertion checking])) - +AC_ARG_ENABLE([threadsanitizer], + AS_HELP_STRING([--enable-threadsanitizer],[Compile with -fsanitize=thread])) AC_ARG_ENABLE([sanitizer], AS_HELP_STRING([--enable-sanitizer],[Enable AddressSanitizer])) @@ -1144,6 +1145,13 @@ fi if test "x$enable_debug" != "xyes" ; then CFLAGS="$CFLAGS -fno-stack-protector" fi +AC_MSG_CHECKING([whether to compile in thread sanitizer]) +if test "x$enable_threadsanitizer" = "xyes" ; then + CFLAGS="$CFLAGS -fsanitize=thread" + AC_MSG_RESULT([yes]) +else + AC_MSG_RESULT([no]) +fi if test x"$with_extra_cflags" != "x"; then CFLAGS="$CFLAGS $with_extra_cflags"