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

    <tr>
        <th>Summary</th>
        <td>
            clang-cl: tries to use link.exe on Linux
        </td>
    </tr>

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

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

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

<pre>
    When I use clang-cl it tries to link the exe with link.exe by default, which fails.
Instead I need to tell it to use lld with `-fuse-ld=lld`. Shouldn't it use lld by default when cross-compiling on Linux or similar systems?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxEkUGvoywUhn8Nbk40FtSWBYv7fY1Jk9nNYtYoR-HOERoPTm___UTvNF0RIO9zXngsc5gjohHtf6K9FnbLPq3G2RUtsQ_xMxRDck_zy2OEG2yMMJKNczkShAx5DciQE1CIvyF7BPxCeITsj5Nq3w1PcDjZjbKQ_8PDh9HDZANxJeqrqD9ukTNaBzeIiG6HZaRvejoGErlvpOjqctoYS3JCXYmc6OoKfvq0kYtCnvMeeiXeY-Gxlx_XxFyOabkHCnGGFOFHiNsXpBU4LIHsCvzkjAsL1RfOKKeVtgWaU6cb1aqu04U3dmouGkc9XJpGW62bqb20p7OWddecJjUVwchaqlqf6pNqzo2u7HB22g2tU1JOekTR1LjYQBXRn6VK61wE5g1N1160LsgOSHz4kDLiA45LIeWuZzV7phy2mUVTU-DMb0oOmdC87Aj18bZz_MnLx-vhxbaS8TnfWagPIXsh-zlkvw3VmBYh-x38bynva_rEMQvZH3VYyP6o-zcAAP__wJS-dA">