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

    <tr>
        <th>Summary</th>
        <td>
            bolt_rt should be using the runtimes build
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            cmake,
            BOLT
      </td>
    </tr>

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

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

<pre>
    bolt_rt uses `ExternalProject_Add` to build it as a separate project, but the subbuild still uses the host compiler. This could be potentially problematic when the host compiler is significantly older/newer (or otherwise incompatible) with Clang we're building. Ideally, bolt_rt should use the runtime build which follows the same strategy, but instead uses the just built Clang (when being built). It also provides a lot of common infrastructure for building runtimes, reducing duplication and simplifying maintenance. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkkkHPmzgQhn-NuYyKwBBIDhzarxup0kq7h94rG09gWmMjz7jZ_PuVSdqutieE7Xn1vI9tmGkJiJM6fVCnj5XJssY07ShpjYzfKhvdY7LRy5ckkBkZ1ND88Y9gCsb_neJXnOXLe-fU0IBEsJm8AxIwDAYYd5OMIOzPg0q_gc0CsiJwts_DLOT9M7qsr5EF5rjt5DHV8Hklhjlm78Ai7FEwCBnvHyXTetyM0Az3FcPv00AMpR7daDZB_AOid5iUvga8YwKlzzFBlBXTnRiBQpk0Qtaj0he4k6zw5k1Y4I5Kjwmf_SgsNXxyWDCOSi89vB6cmfFgSTkIba8ZuK80r3CL3sf7symbDYGlCFoeP9RQYEHjfvn4mlmOCHmhKH0-6lqksDx3lL7U8EnAeI7Fy3dyWPz7KBBvxccWA1C4JcOS8iw5Idxi-lnnBysXjIQuz2XR5d3TbIRiABMcMG27p9uj7G2GgmAwYcYaKjd17tJdTIVTO5x7PQ792FbrNLbnU2dta5vOjMOgse1cP56b83AZ9bk3FU260V1zagetu75r63Ye0aLR2LqTPVmr-gY3Q772_vtWx7RUxJxxGvTYXypvLHo-Hq_W82a-odJa6Tel9Ye__vxcfk4fqzSV4Xc2L6z6xhML_4oTEo_T_67QImQuNf9zj_y0VeXkp1VkZ9W9V_qq9HUhWbOt57gpfS3Br8-7n8_-ekCz0teD-98AAAD___N-M44">