[clang] [clang][test] Fix flaky linker checks in msvc-link.c (PR #228657)

via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 3 04:34:17 PDT 2026


================
@@ -61,9 +61,8 @@
 
 // RUN: %clang --target=i686-pc-windows-msvc -g -fuse-ld= -### %s 2>&1 | FileCheck --check-prefix=DEBUG-LINK %s
 // RUN: %clang --target=i686-pc-windows-msvc -g -fuse-ld=link -### %s 2>&1 | FileCheck --check-prefix=DEBUG-LINK %s
-// DEBUG-LINK: link.exe"
+// DEBUG-LINK: "{{([^"]*[/\\])?}}link.exe"
----------------
Nerixyz wrote:

I don't think this will work if Clang is configured with `CLANG_DEFAULT_LINKER=lld`.

https://github.com/llvm/llvm-project/pull/228657


More information about the cfe-commits mailing list