[llvm-bugs] [Bug 28257] New: LLD_REPRODUCE environment variable

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 21 19:21:32 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28257

            Bug ID: 28257
           Summary: LLD_REPRODUCE environment variable
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: chisophugis at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Sometimes it is mildly annoying to extract the linker invocation and add
--reproduce. For example, Davide was just using that with the FreeBSD build
system and it took a bit of wrangling (couple minutes).

For added convenience, it would be great if we responded to a LLD_REPRODUCE
environment variable. I'm not sure what the most convenient semantics would be.
Maybe a good starting point is `LLD_REPRODUCE=<arg>` is equivalent to passing
`--reproduce <arg>` which would cover quite a few use cases (such as the one we
just ran into).

That may be annoying if you end up running multiple links with the environment
variable set. We may want to respond to `LLD_REPRODUCE_SUFFIX=<suffix>`. If we
are creating `foo.elf` then it would put a cpio archive in `foo.elf.<suffix>`.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160622/fe708b70/attachment.html>


More information about the llvm-bugs mailing list