[lld] r293792 - Strip file path from the -o option while creating reproduce.txt.
Ed Maste via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 1 10:35:00 PST 2017
On Feb 1, 2017 1:16 PM, "Rafael Espindola via llvm-commits" <
llvm-commits at lists.llvm.org> wrote:
Date: Wed Feb 1 12:04:45 2017
New Revision: 293792
Strip file path from the -o option while creating reproduce.txt.
This is a fix for Bugzilla 28579.
The problem is that in --reproduce links the file path in -o option is
copied verbatim. When "lld @response.txt" link is run against the
extracted test case, if -o contains anything other that a plain file
name, the link will likely fail because the target directory in -o may
not exists. Stripping the directory path will create the output file
in the top level test directory
For debugging LLD issues this is certainly a win. I've also found reproduce
useful for repeating a failed LLD invocation with ld.bfd, with it retaining
the path. What do you think about including empty directories for -o in the
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits