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

Wrap linker flags on Windows for IntelLLVM #206

Merged

Conversation

Maetveis
Copy link
Contributor

The Intel C++ compiler requires linker flags to be wrapped, because CMake passes them through the compiler driver.
Prefix Linker options with ${CMAKE_CXX_LINKER_WRAPPER_FLAG}. This variable is set to the option to pass a linker flag through the compiler driver by CMake. For MSVC and clang-cl or IntelLLVM pre cmake 3.25 this will be empty, so the patch will work in these cases too.

Fixes: #205

The Intel C++ compiler requires linker flags to be wrapped, because
CMake passes them through the compiler driver.
Prefix Linker options with `${CMAKE_CXX_LINKER_WRAPPER_FLAG}`.
This variable is set to the option to pass a linker flag through the
compiler driver by CMake. For MSVC and clang-cl or IntelLLVM pre cmake
3.25 this will be empty, so the patch will work in these cases too.

Fixes: oneapi-src#205
Signed-off-by: Gergely Meszaros <gergely.meszaros@intel.com>
@lisanna-dettwyler lisanna-dettwyler merged commit b757f43 into oneapi-src:master Oct 4, 2024
25 checks passed
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
2 participants