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

    <tr>
        <th>Summary</th>
        <td>
            Out-of-tree clang and flang can't find compiler-rt
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang,
            flang
      </td>
    </tr>

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

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

<pre>
    If either clang or flang are built out-of-tree against an already compiled LLVM, they are unable to find compiler-rt when linking. This is due to the path to compiler-rt being hard-coded to the same install tree as the clang driver, meaning that if compiler-rt is installed elsewhere it doesn't get picked up.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxcUkFv3CwU_DX48rSWje11fODwfYlWqpSql6j3h3k2NBgseN5o_31lb1ZNe-IhZoYZBszZzYFIie5_0b0UuLGNSb3g1Zm3tOlboaO5qW8TkGNLCUaPYYaYYDoGTAR6c54hbnyK04kTEeCMLmQGDIA-EZobjHFZnScDr68_vwv5DGzpdtC3gNoTcITJBfMAplNi-LAUwLvw7sJcwpt1GVwGsx1otgQrst3nryRNLsxgMZnTGA2ZBzbjQrDbQu_hbjMfB_dIJrkrpd3ZQhh2CbbI4Ka_xHcHdwkyQD7Th6VE4BhMpByE7BlmYljd-E4GtrUsjGrM0AxYkKr7TlZ9dT73hVXGnFv91FBDqHVLY2u6p1pjqxFr04xD4ZSsZFf11VC3dd_2ZYOIshvHoW3OaAYt2ooWdL70_rqUMc2Fy3kjVbd93zwVHjX5fDQr5RFSSCnks5Byeuy6lyKpnX7S25xFW3mXOf8RZMee1I8v3d5fC4P5_AEj3lP_W16xJa8s85pF85-QFyEvs2O76XKMi5CX_YrP5bSm-ItGFvJyBMhCXj4zXJX8HQAA__94o-RY">