Skip to content

Commit

Permalink
TSan: Fix build with older clang versions
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierNicole committed Dec 22, 2022
1 parent ea71b81 commit b31c672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/caml/mlvalues.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit b31c672

Please sign in to comment.