<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/101477>101477</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Windows package should provide runtime libraries for windows-gnu
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nolange
</td>
</tr>
</table>
<pre>
Hello,
I would like to use Clang with a mingw-based sysroot. The issue is that the official Windows installer only ships with the MSVC runtimes.
Setting the target to mingw, clang will search for `libclang_rt.builtins-x86_64.a` instead of the existing `clang_rt.builtins-x86_64.lib`.
Resulting Error:
```
C:\PROGRA~1\LLVM\bin\clang.exe --target=x86_64-w64-mingw32 --sysroot="C:/Program Files/Llvm-Mingw/x86_64-w64-mingw32" --start-no-unused-arguments -stdlib=libc++ -rtlib=compiler-rt -unwindlib=libunwind --end-no-unused-arguments -fuse-ld=lld CMakeFiles/cmTC_0d61d.dir/testCCompiler.c.obj -o cmTC_0d61d.exe -Wl,--out-implib,libcmTC_0d61d.dll.a -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cd ."
[cmake] ld.lld: error: could not open 'C:\Program Files\LLVM\lib\clang\18\lib\windows\libclang_rt.builtins-x86_64.a': no such file or directory
```
My request would be to build and add those runtimes (the builtins atleast, sanitizers and others would likely depend too much on the C/C++ library) to the Windows installer.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8VE1v4zYQ_TX0ZUBBoizJPuiQyHVbIEEX2cXuMaDEscSEIlWSsuMe-tsLUspHsWkBgxQ5nJk3zzOPOyd7jViT4pYUhw2f_WBsrY3iusdNa8S1_g2VMoQ1JD2Q9GZZf4eLmZUAJZ8RvIHZITTBBy7SD8BhlLq_0JY7FOCuzhrjE_g2IEjn5rCCH7gHPyCY00l2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