[all-commits] [llvm/llvm-project] 2c2b40: [clang-repl][CMake][MSVC] Wrap /EXPORT linker opti...
Mészáros Gergely via All-commits
all-commits at lists.llvm.org
Wed Oct 23 04:04:38 PDT 2024
Branch: refs/heads/users/maetveis/wrap-icx-clang
Home: https://github.com/llvm/llvm-project
Commit: 2c2b4070b05db0a550fb2a63458be85020963a9a
https://github.com/llvm/llvm-project/commit/2c2b4070b05db0a550fb2a63458be85020963a9a
Author: Gergely Meszaros <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
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