From c8a4c050626f451461a3667589d40004b2547a1c Mon Sep 17 00:00:00 2001
From: Ben Gamari <ben@smart-cactus.org>
Date: Sat, 9 Mar 2024 14:31:45 -0500
Subject: [PATCH] rts: Fix TSAN_ENABLED CPP guard

This should be `#if defined(TSAN_ENABLED)`, not `#if TSAN_ENABLED`,
lest we suffer warnings.
---
 rts/include/Cmm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rts/include/Cmm.h b/rts/include/Cmm.h
index 780a6eb8f1fa..0265a4b2042a 100644
--- a/rts/include/Cmm.h
+++ b/rts/include/Cmm.h
@@ -698,7 +698,7 @@
 #define ACQUIRE_FENCE prim %fence_acquire();
 #define SEQ_CST_FENCE prim %fence_seq_cst();
 
-#if TSAN_ENABLED
+#if defined(TSAN_ENABLED)
 // This is may be efficient than a fence but TSAN can reason about it.
 #if WORD_SIZE_IN_BITS == 64
 #define ACQUIRE_FENCE_ON(x) if (1) { W_ tmp; (tmp) = prim %load_acquire64(x); }
-- 
GitLab