[PATCH] D26443: [ELF] - Use backward slashes inside response files

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 02:42:38 PST 2016


grimar added inline comments.


================
Comment at: lib/Core/Reproduce.cpp:79
 // assuming that the current directory is "/home/john/bar".
 std::string lld::relativeToRoot(StringRef Path) {
   SmallString<128> Abs = Path;
----------------
ruiu wrote:
> Please add a comment when you do something not obvious.
> 
>   // Returned string is a slash-separated path even on Windows to avoid
>   // a mess with backslash-as-escape and backslash-as-path-separator.
Done.


================
Comment at: test/ELF/reproduce-windows2.s:10
+# RUN: echo "*response.txt" > list.txt
+# RUN: cpio -i --to-stdout --pattern-file=list.txt < repro.cpio | FileCheck %s
+# CHECK: {{.*}}/build/foo.o
----------------
ruiu wrote:
> Don't use --to-stdout as it won't work on non-GNU systems.
I wonder how to make a test then.

I think we can not unpack cpio on windows as "can get over the path limit on windows" like mentioned in reproduce-error.s.
Since this test is about windows specific functionality, what about running it on windows only ?


https://reviews.llvm.org/D26443





More information about the llvm-commits mailing list