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: unassignedb...@nondot.org
          Reporter: chisophu...@gmail.com
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to