[compiler-rt] [Asan] Make fuse-lld-globals.cpp require lld (PR #155010)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 22 11:29:44 PDT 2025
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/155010
Otherwise if we do not build lld, this test will run and fail. Found when experimenting with LLVM_ENABLE_RUNTIMES="compiler-rt" on Windows.
>From b5cbd591b22820a6f990f57b47226a788fc430a4 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Fri, 22 Aug 2025 18:27:55 +0000
Subject: [PATCH] [Asan] Make fuse-lld-globals.cpp require lld
Otherwise if we do not build lld, this test will run and fail. Found
when experimenting with LLVM_ENABLE_RUNTIMES="compiler-rt" on Windows.
---
compiler-rt/test/asan/TestCases/Windows/fuse-lld-globals.cpp | 2 ++
1 file changed, 2 insertions(+)
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>
More information about the llvm-commits
mailing list