This repository was archived by the owner on Sep 15, 2025. It is now read-only.
Commit 631bcbe
authored
[llvm][cmake] Properly place clang runtime directory on linker command line when WinMsvc.cmake is involved (llvm#110084)
WinMsvc.cmake, used for cross-compiling LLVM, targetting Windows, puts
-libpath flags on the linker command line for the MSVC directories.
Those may contain clang runtime libraries that come from MSVC, and may
be incompatible with the clang compiler in use when it doesn't come from
MSVC (which is obviously the case on cross-compiles). By prioritizing
the clang runtime directory on the linker command line, we avoid those
libraries being picked up by the linker.1 parent 8a7843c commit 631bcbe
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
327 | 333 | | |
328 | 334 | | |
329 | 335 | | |
| |||
1196 | 1202 | | |
1197 | 1203 | | |
1198 | 1204 | | |
1199 | | - | |
| 1205 | + | |
1200 | 1206 | | |
1201 | 1207 | | |
1202 | 1208 | | |
| |||
0 commit comments