[all-commits] [llvm/llvm-project] eb9af1: [clang-repl][CMake][MSVC] Wrap /EXPORT linker opti...
Mészáros Gergely via All-commits
all-commits at lists.llvm.org
Wed Oct 23 05:34:06 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb9af19fbf13b91c9df8d6dc8553277169976520
https://github.com/llvm/llvm-project/commit/eb9af19fbf13b91c9df8d6dc8553277169976520
Author: Mészáros Gergely <gergely.meszaros at intel.com>
Date: 2024-10-23 (Wed, 23 Oct 2024)
Changed paths:
M clang/tools/clang-repl/CMakeLists.txt
M clang/unittests/Interpreter/CMakeLists.txt
Log Message:
-----------
[clang-repl][CMake][MSVC] Wrap /EXPORT linker option for ICX (#112867)
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).
Use the `LINKER:` prefix for the `/EXPORT:` options in clang-repl, this
expands to the correct flag for ICX and nothing for MSVC / clang-cl.
RFC:
https://discourse.llvm.org/t/rfc-cmake-linker-flags-need-wl-equivalent-for-intel-c-icx-on-windows/82446
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