[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:

Author: rafael
Date: Wed Feb  1 12:04:45 2017
New Revision: 293792

URL: http://llvm.org/viewvc/llvm-project?rev=293792&view=rev
Log:
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
reproduce.tar instead?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170201/cf1db7bd/attachment.html>


More information about the llvm-commits mailing list