"libsystemd_daemon:no"
"bintray_cache:yes"
"ddci:no"
+ "cclang_threadsan:no"
)
#
}
'
+check_cc_snippet cclang_threadsan '
+int test(void){
+#if __has_feature(thread_sanitizer)
+ return 0;
+#endif
+}'
+
#
# Python
#
#define TVH_TITLE_LEN 256
/* sanitizer helpers */
-#if __has_feature(thread_sanitizer)
+#if ENABLE_CCLANG_THREADSAN
void *blacklisted_memcpy(void *dest, const void *src, size_t n);
int blacklisted_close(int fildes);
#else
/*
* Sanitizer helpers to avoid false positives
*/
-#if __has_feature(thread_sanitizer)
+#if ENABLE_CCLANG_THREADSAN
void *blacklisted_memcpy(void *dest, const void *src, size_t n)
__attribute__((no_sanitize("thread")))
{