]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Declare __SANITIZE_THREAD__ in isc/util.h when clang ThreadSanitizer is used
authorOndřej Surý <ondrej@sury.org>
Thu, 4 Jul 2019 12:25:59 +0000 (14:25 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 2 Oct 2019 12:09:33 +0000 (14:09 +0200)
lib/isc/include/isc/util.h

index 6602aac2b37ab155b92bcbee271154711c17e825..730cfc268fcc8839b9663d3335da88bf3424bfee 100644 (file)
 #define __SANITIZE_ADDRESS__ 1
 #endif
 
+#if __has_feature(thread_sanitizer)
+#define __SANITIZE_THREAD__ 1
+#endif
+
 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR >= 6)
 #define STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
 #elif __has_feature(c_static_assert)