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 with LINKER: prefix for IntelLLVM #553

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

Maetveis
Copy link
Contributor

@Maetveis Maetveis commented Oct 8, 2024

The Intel C++ compiler passes linker flags through the compiler driver since CMake 3.25, therefore they need to be escaped with the LINKER: prefix.
This expands to the empty string in MSVC and clang-cl or older versions of CMake, so no special handling is needed for that.

Fixes: #552

@wenju-he
Copy link
Contributor

wenju-he commented Oct 8, 2024

espaced

is this a typo?

The Intel C++ compiler passes linker flags through the compiler driver
since CMake 3.25, therefore they need to be escaped with the `LINKER:`
prefix.
This expands to the empty string in MSVC and clang-cl or
older versions of CMake, so no special handling is needed for that.
@Maetveis
Copy link
Contributor Author

Maetveis commented Oct 9, 2024

espaced

is this a typo?

Yup, meant to be escaped, should be fixed now.

Copy link
Contributor

@wenju-he wenju-he left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wenju-he wenju-he merged commit de985e9 into intel:main Oct 10, 2024
4 checks passed
@wenju-he
Copy link
Contributor

@Maetveis thank you for the fix.

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