[lld] [lld][ELF] Only convert dependency filename to native form on Windows (PR #160927)
Ruoyu Zhong via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 19 23:11:06 PDT 2025
================
@@ -0,0 +1,13 @@
+# REQUIRES: x86, !system-windows
+# RUN: mkdir -p %t
+# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o "%t/back\\slash.o"
+# RUN: ld.lld -o %t/foo.exe "%t/back\\slash.o" --dependency-file=%t/foo.d
+# RUN: FileCheck --match-full-lines -DFILE=%t %s < %t/foo.d
+
+# CHECK: [[FILE]]/foo.exe: \
+# CHECK-NEXT: [[FILE]]/back\slash.o
----------------
ZhongRuoyu wrote:
Thanks, fixed in b59f1f8da99567ef21fc51777b2e7af1ecbbbd5c. The structure of these two tests was copied from [`lld/test/ELF/dependency-file.s`](https://github.com/llvm/llvm-project/blob/4ba30c6eb6b9b358556563e6b8a0b1dbbba8a2e7/lld/test/ELF/dependency-file.s) so I updated that as well.
https://github.com/llvm/llvm-project/pull/160927
More information about the llvm-commits
mailing list