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

    <tr>
        <th>Summary</th>
        <td>
            How to cross-compile libcxx and libgcc?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            libc++
      </td>
    </tr>

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

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

<pre>
    I was trying to create a cross-build environment for the target x86_64-w64-mingw32 that was independent from GCC. Replacements for libstdc++ and libgcc were only missing, but when I try to build them here from scratch, cmake is testing if an executable can be compiled and linked and therefor fails, since the libraries I'm trying to build are missing.
Is there no way to skip this test in cmake? `-DBUILD_SHARED_LIBS=OFF` doesn't help.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxMkk9vuzgQhj-NuYyCjIFADhyaZtlGqrRSqz1X_jMBt8ZGtinpt1-ZsPr1BLL0Pn488_IQ9GARO1KfSX3J-BJH5zvFPXITRm0_dSac-umusPIA0f9oO0B0ID3yiMBBehfCQSzaKED7rb2zE9oIN-chjgiR-wEj3Nvjx7E6rMfqMGk7rCWDOPK4UbVVOKNVW8y7Cf5-fs7hDWfDJSZY2GhGixCVJOxM2Bm4VelkkBJW9AjOmh-YdAjaDoQ9g1girCNauCbrpPxwjCNOMKbEdlWQnkc5poSc-BeCDhAxxPRMfQNuAe8ol8iFQZDcgkCQbpq1QbU72K_9NyZsMr1xbUJCBm0lbmMwWnjuNQa4EtZMvyb50OIe_7fPCX26hgcNrIOVb_rhS88Qx90PtH0Ik7IHcqSHy_nf6-vl4_3l6e2vy8fr9fxOyss_fU-OFJTDYAlrIoxo5jxTXalO5Yln2BVNRcuC1bTIxq6qREHbhjcNtqdS0fZ2UnXR1DUeT0V7U5nuGGU1ZawsGG1ZkWN5EjWlhWiKsmYUSUVx4trkxnxPufNDpkNYsCtYWxV1ZrhAE7ayMWa02JdJGEvl811KHcQyBFJRo0MMfzhRR4Pdi1sf7Uul2_eQZivv91-NIGWfLd50Y4xzIOUTYT1h_aDjuIhcuomwPnH3z2H27hNlJKzfZANh_e773bH_AgAA___CqgpY">