[PATCH] D133773: [clang] fix linker executable path in test

Alvin Wong via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 13 07:50:40 PDT 2022


alvinhochun added a comment.

Ah sorry about that, I didn't realize the command includes `.exe` on Windows. (For the record, `ld"` matches both `ld` and `ld.lld`.)



================
Comment at: clang/test/Driver/mingw-cfguard.c:6
 // NO_CF-NOT: "-cfguard-no-checks"
-// NO_CF-NEXT: ld"
+// NO_CF-NEXT: ld{{(.exe)?}}"
 // NO_CF-NOT: "--guard-cf"
----------------
Literal dot needs to be escaped as `\.` in regex.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133773/new/

https://reviews.llvm.org/D133773



More information about the cfe-commits mailing list