[llvm] [llvm][lit] Add tsan feature when enabled (PR #94573)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 5 22:20:23 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-testing-tools
Author: Keith Smiley (keith)
<details>
<summary>Changes</summary>
This mirrors the other sanitizer features above
---
Full diff: https://github.com/llvm/llvm-project/pull/94573.diff
1 Files Affected:
- (modified) llvm/utils/lit/lit/llvm/config.py (+2)
``````````diff
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:
``````````
</details>
https://github.com/llvm/llvm-project/pull/94573
More information about the llvm-commits
mailing list