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

    <tr>
        <th>Summary</th>
        <td>
            [LTO] [MinGW] Unsupport LTO when using lld wrapper
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            lld
      </td>
    </tr>

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

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

<pre>
    ld.wrapper-lld
```bash
#!/bin/bash
"/usr/bin/ld.lld" "$@"
```
```
~$ x86_64-w64-mingw32-clang -flto -fuse-ld=wrapper-lld test.c
clang: error: 'x86_64-w64-windows-gnu': unable to pass LLVM bit-code files to linker
```
clang version 17.0.3
LLD 17.0.3
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk9vnDAQxT_NcLFAxjawe-Cw0YpeiHJJ22NlYwNuvTbyn5Be-tkrs2mbSpEQnvFv_PSkeTwEvVilemgeoLkWPMXV-f5iJfe7tum1EE7-7I2sds-3TfnSGAn4CvgCLb5_gof17YpQIDWQQWib_-8AATKk4P8yI6usRAg6GAOGc_G_8oftLyAMvZ7aby0r95aVN22XnZJyMtwuqJxNdKicU1ClkUCv73yjqEKsprvMMQ70gpT3zucCSPdOdtdWuj2Ui01AusyT5cIoFB3aeAhoHL88IqFjOTmp0KyNCpkZbX8o_6Hzu8MX5YN2FtVdhSt6J-N4fesL2VN5pmdeqL5uz6eurjFrirVnRDTtjDHmbUvZfD7zhuCuO0mKJ9pMotA9wYTWmNYY15ixitRiEh3D9dycTp2SwLC6cW0qY15ulfNLoUNIqu9w19SF4UKZcOSAkPtqciB8n6dLkZYADBsdYvj3PupojuiMz0_QXBE0D4_afvqa6882pG1zPqLx-Qntq7IoBW0XlBfxtpQiedOvMW4B6AXIAGRYdFyTqCZ3yyExL3-OcvPuu5oikOFwHYAMh_HfAQAA__-3qtBO">