[llvm] [llvm][lit] Add tsan feature when enabled (PR #94573)
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 22:19:58 PDT 2024
https://github.com/keith created https://github.com/llvm/llvm-project/pull/94573
This mirrors the other sanitizer features above
>From dd994e1f1f6002b285f922388cf1dc75f60ec4b8 Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Thu, 6 Jun 2024 05:18:34 +0000
Subject: [PATCH] [llvm][lit] Add tsan feature when enabled
This mirrors the other sanitizer features above
---
llvm/utils/lit/lit/llvm/config.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/llvm/utils/lit/lit/llvm/config.py b/llvm/utils/lit/lit/llvm/config.py
index 1d4babc99984b..442455f7140f3 100644
--- a/llvm/utils/lit/lit/llvm/config.py
+++ b/llvm/utils/lit/lit/llvm/config.py
@@ -131,6 +131,8 @@ def __init__(self, lit_config, config):
features.add("msan")
if "undefined" in sanitizers:
features.add("ubsan")
+ if "thread" in sanitizers:
+ features.add("tsan")
have_zlib = getattr(config, "have_zlib", None)
if have_zlib:
More information about the llvm-commits
mailing list