<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - LLD_REPRODUCE environment variable"
   href="https://llvm.org/bugs/show_bug.cgi?id=28257">28257</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLD_REPRODUCE environment variable
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>chisophugis@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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>`.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>