<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/55310>55310</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            compiler-rt install directory paths are cached across version changes
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          griwes
      </td>
    </tr>
</table>

<pre>
    What the title says. If you build compiler-rt as a runtime (at least using the multi-target runtime configurations thing, though reading the cmakelists it should be happening in a normal runtimes build too) with, say, a 14.0.1 checkout, pull 14.0.3, and rebuild, compiler-rt ends up being installed... into 14.0.1 directories. I believe that this has been caused by how 1e03c37b97b6176a60404d84665c40321f4e33a4 puts the relevant variables into cache (line 105 and onward, specifically), but doesn't override them when a version changes.

I am unsure what the best / most desired way to fix this is, but if someone can suggest what the compiler-rt maintainers would like to see, I'm happy to try to make a patch for this.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdU9tupDAM_RrmxSriTueBh-5WlfoF-2yIgWxDguJkZufv12Q63WolIDfn-JxjMzp1G36tGCCsBEEHQ8B44xzeZ7i5CGPURsHktl0b8k8-ADIg-GiD3giy6lnuGkIOEFnbJeFs0QT9FNAvFL5CJ2dnvUSPQTvLEifRWfVTJi4uK3hC9bg_bfhBRnNg0AFYAoTDSLDivpM9orQVEtb5Dc0jAX9yDc5l1RmuOqwHvKg5BoSyyYu8hGml6cPFcGzu0Zj7fp1irBIaCeVYfhdNVjHEXUjcs3NAY0jleS6L4B7gSnuagvOaDgcl2mi6iK93gzWLAqFJZGHCyCSibrC6K5RU1FPdj-d-7Mq-w65oikY9N13XTk1RV-XcUF1jI4wDJ4s8GbqgDXBBr3E0Ij8RmVAEHmUx2hKURZtUOXtFn0TxTpOe9ST0xZfzsTXGAMoR26zqA7gLea_VQZo2uK50OC17LFUT89Auoi0rXrPi5f59B9wgWo6eJPyzk0aShsiqN9icTBSxGKPgijcpD8z6z90NzY_8egZ2GznhPKEFjstyIHzhfa_FhqJUXuEE19QaRn_QAcxEB-C7CNlSs6R0wafh6CmRsmOYVpidTxTykxpqda7PeErNP3xP9Fnmr6rejsurtL-nu88KcPKO-X9_TtGbYQ1h56x-ERfkWaQd45gLvCyMuTyGp92734IuS80cSRx5a9u6LE7r0M5lTzg2XVWU576pm7ki6ruxx2mk6tydDEqH8ZC1P7KqsnSFBCHzrH096aEqqqpoi648t21T5g12qm-bStXPY62aMmsKEi9NfvDInV9OfkiUxriwHKYf8N8hMuvFEqV0go9R_lw_LF5fRXHKPCTmfwHuMXhu">