Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[opencl-aot][sycl][CMake][MSVC]: Wrap Linker flags for ICX #15756

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

Maetveis
Copy link
Contributor

From CMake 3.25+ linker options need to be wrapped for ICX on Windows. Use the LINKER: prefix, which expands to the correct option for ICX, and for the empty string for MSVC or clang-cl.

See also LLVM RFC: https://discourse.llvm.org/t/rfc-cmake-linker-flags-need-wl-equivalent-for-intel-c-icx-on-windows/82446

Fixes: #15755

From CMake 3.25+ linker options need to be wrapped for ICX on Windows.
Use the `LINKER:` prefix, which expands to the correct option for ICX,
and for the empty string for MSVC or clang-cl.

See also LLVM RFC: https://discourse.llvm.org/t/rfc-cmake-linker-flags-need-wl-equivalent-for-intel-c-icx-on-windows/82446

Fixes: intel#15755
@Maetveis Maetveis requested review from a team as code owners October 18, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unescaped linker flags when building with the Intel C++ Compiler on Windows and CMake > 3.25
1 participant