[all-commits] [llvm/llvm-project] 631bcb: [llvm][cmake] Properly place clang runtime directo...
Mike Hommey via All-commits
all-commits at lists.llvm.org
Thu Sep 26 23:16:17 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 631bcbe9de13e160d427ad7452a7ef2ca67911ab
https://github.com/llvm/llvm-project/commit/631bcbe9de13e160d427ad7452a7ef2ca67911ab
Author: Mike Hommey <mh at glandium.org>
Date: 2024-09-27 (Fri, 27 Sep 2024)
Changed paths:
M llvm/cmake/modules/HandleLLVMOptions.cmake
Log Message:
-----------
[llvm][cmake] Properly place clang runtime directory on linker command line when WinMsvc.cmake is involved (#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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list