[PATCH] D155047: [lld][COFF] Add -print-search-paths for debugging.
Tobias Hieta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 12 05:47:35 PDT 2023
thieta added inline comments.
================
Comment at: lld/test/COFF/print-search-paths.s:7
+# CHECK: Library search paths:
+# CHECK: [[SYSROOT]]/sysroot\VC\Tools\MSVC\1.1.1.1\lib\x64
+# CHECK: [[SYSROOT]]/sysroot\VC\Tools\MSVC\1.1.1.1\atlmfc\lib\x64
----------------
hans wrote:
> mstorsjo wrote:
> > thieta wrote:
> > > hans wrote:
> > > > Those backslashes will probably be forward slashes when this test runs on non-Windows.
> > > Ah good point. Is there a good facility in Filecheck to match the correct slashes?
> > Lots of tests have explicit regexes for it (see e.g. clang/test/Driver), like `{{[/\\\\]}}`. It's an absolute pain to both write and read though.
> No, I believe the way to do is it with regexes: `{{[/\\]}}`
It's beautiful!
Side-note: maybe we should have a flag to FileCheck or something to allow it to match both or some kind of subst macro.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155047/new/
https://reviews.llvm.org/D155047
More information about the llvm-commits
mailing list