[compiler-rt] [Asan] Make fuse-lld-globals.cpp require lld (PR #155010)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 11:30:15 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
Otherwise if we do not build lld, this test will run and fail. Found when experimenting with LLVM_ENABLE_RUNTIMES="compiler-rt" on Windows.
---
Full diff: https://github.com/llvm/llvm-project/pull/155010.diff
1 Files Affected:
- (modified) compiler-rt/test/asan/TestCases/Windows/fuse-lld-globals.cpp (+2)
``````````diff
diff --git a/compiler-rt/test/asan/TestCases/Windows/fuse-lld-globals.cpp b/compiler-rt/test/asan/TestCases/Windows/fuse-lld-globals.cpp
index 3ee413b7dfd4e..97f3783cb58c8 100644
--- a/compiler-rt/test/asan/TestCases/Windows/fuse-lld-globals.cpp
+++ b/compiler-rt/test/asan/TestCases/Windows/fuse-lld-globals.cpp
@@ -1,3 +1,5 @@
+// REQUIRES: lld-available
+
// RUN: %clangxx_asan -fuse-ld=lld -O3 %s -o %t && not %run %t 2>&1 | FileCheck %s
#include <string.h>
``````````
</details>
https://github.com/llvm/llvm-project/pull/155010
More information about the llvm-commits
mailing list