[all-commits] [llvm/llvm-project] e1b582: [LLVM][CMake][MSVC] Wrap linker options for ICX wi...
Mészáros Gergely via All-commits
all-commits at lists.llvm.org
Tue Jan 28 04:49:59 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e1b5826c2b9dafbdf627b2abbf0157ae12306657
https://github.com/llvm/llvm-project/commit/e1b5826c2b9dafbdf627b2abbf0157ae12306657
Author: Mészáros Gergely <gergely.meszaros at intel.com>
Date: 2025-01-28 (Tue, 28 Jan 2025)
Changed paths:
M llvm/cmake/modules/HandleLLVMOptions.cmake
Log Message:
-----------
[LLVM][CMake][MSVC] Wrap linker options for ICX with LLVM_BUILD_INSTUMENTED (#124573)
RFC:
https://discourse.llvm.org/t/rfc-cmake-linker-flags-need-wl-equivalent-for-intel-c-icx-on-windows/82446
The Intel C++ Compiler (ICX) passes linker flags through the driver
unlike MSVC and clang-cl, and therefore needs them to be prefixed with
`/Qoption,link` (the equivalent of `-Wl,` for gcc on *nix).
Previous PRs did not catch this because I did not try building with
`LLVM_BUILD_INSTRUMENTED=ON`.
`CMAKE_CXX_LINKER_WRAPPER_FLAG` is empty for plain clang-cl (icx on
windows behaves as clang-cl), so this is NFC for clang-cl.
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