diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-10-24 11:12:11 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-10-24 21:00:19 -0400 |
commit | 4cb1232ec5ad92f40ed494fde4a9f172cc4980fb (patch) | |
tree | 0258784510691bc67cd9bd8d767a7ca0b1c8f3ff /includes | |
parent | c5a0bb22238a437ae050e8cc6120d5a41533866d (diff) | |
download | haskell-4cb1232ec5ad92f40ed494fde4a9f172cc4980fb.tar.gz |
TSANUtils: Ensure that C11 atomics are supported
Diffstat (limited to 'includes')
-rw-r--r-- | includes/rts/TSANUtils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/rts/TSANUtils.h b/includes/rts/TSANUtils.h index 00f226d9c6..72f4541a89 100644 --- a/includes/rts/TSANUtils.h +++ b/includes/rts/TSANUtils.h @@ -40,6 +40,10 @@ #endif #if defined(TSAN_ENABLED) +#if !defined(HAVE_C11_ATOMICS) +#error TSAN cannot be enabled without C11 atomics suppoort. +#endif + #define TSAN_ANNOTATE_HAPPENS_BEFORE(addr) \ AnnotateHappensBefore(__FILE__, __LINE__, (void*)(addr)) #define TSAN_ANNOTATE_HAPPENS_AFTER(addr) \ |