diff --git a/runtime/caml/mlvalues.h b/runtime/caml/mlvalues.h index 4e277c290a..92b1b08c79 100644 --- a/runtime/caml/mlvalues.h +++ b/runtime/caml/mlvalues.h @@ -144,11 +144,11 @@ bits 63 (64-P) (63-P) 10 9 8 7 0 #if defined(__has_feature) # if __has_feature(thread_sanitizer) # undef CAMLno_tsan -# define CAMLno_tsan __attribute__((disable_sanitizer_instrumentation)) +# define CAMLno_tsan __attribute__((no_sanitize("thread"))) # endif # if __has_feature(address_sanitizer) # undef CAMLno_asan -# define CAMLno_asan __attribute__((disable_sanitizer_instrumentation)) +# define CAMLno_asan __attribute__((no_sanitize("address"))) # endif #else # if __SANITIZE_THREAD__