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

    <tr>
        <th>Summary</th>
        <td>
            bolt_rt doesn't passthrough all necessary CMake variables
        </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 build uses `ExternalProject_Add` but it doesn't passthrough all necessary CMake variables such as `CMAKE_SYROOT` which can break the build when cross-compiling. It also results in the artifacts being installed in a wrong location when `CMAKE_INSTALL_PREFIX` and `DESTDIR` is being used.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycks1u2zAQhJ-GuixiSNSffdDBiS3AaNIEiQ_tyVhRG5E1TRpcMm7evpCTpveeCP7MxxnMIrOZHFEn6ltRbzJMUfvQnSkG7ZmO2eDH927wNh5ChCEZO0JiYhBNvv0dKTi0T8H_IhUP63EUTQ5DimAijJ7YCdlGOCNz1MGnSQNaC44UMWN4h7sHPBK8YTA4WGLgpDTgFX73sP62Pbz8fH583M_UizZKg0IHQyA8QtT0aeeiyYEKnvlG-dPZWOOmBewioGUPgTjZyGDcVYIhmldUkWEg4yYwjiNaS-P8AOESvJvAeoXRePeB_jKz-_6yX9_fH56et_3ux2wK3Thfb7Yv-83ueT4xf8GJaVxkY1eOq3KFGXVFs6xkW6-KNtMdyrpWdV6sXovqtWzLalwth6Zsm2pJRVXIzHQyl2VeF42Usi7axdCqulGybHCp6rYcRZXTCY1dWPt2WvgwZYY5UdfItlpmFgeyfC1VSnXCIwkphbwTUt4-3u_nTb3JQjeLb4Y0sahyazjyP1w00dJX8__RZpaC7XSMZxblWsheyH4yUadhofxJyH7-6XO5OX-MkJD9NQUL2V-D_AkAAP__NRvdFA">