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

[CMake][MSVC] Wrap more linker flags for IntelLLVM #557

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

Maetveis
Copy link
Contributor

@Maetveis Maetveis commented Dec 3, 2024

My previous pass missed some flags because I used -Werror=unknown-argument, but /D and /G are accepted by clang (even when only linking), but mean different things than intended for link.exe.
Wrapping the linker with a script revealed these flags.

The approach I used to find these is documented as github gist here: https://gist.github.com/Maetveis/00567488f0d6ff74095d91ed306fafc5

My previous pass missed some flags because I used `-Werror=unknown-argument`, but
`/D` and `/G` are accepted by clang (even when only linking), but mean different things
than intended for `link.exe`.
Wrapping the linker with a script revealed these flags.
@Maetveis
Copy link
Contributor Author

Maetveis commented Dec 3, 2024

ping @wenju-he

@wenju-he
Copy link
Contributor

wenju-he commented Dec 4, 2024

My previous pass

do you mean patch?

@Maetveis
Copy link
Contributor Author

Maetveis commented Dec 4, 2024

My previous pass

do you mean patch?

I meant pass as in my previous sweep / attempt a over the code-base, but I can rephrase it if you prefer.

@wenju-he
Copy link
Contributor

wenju-he commented Dec 4, 2024

My previous pass

do you mean patch?

I meant pass as in my previous sweep / attempt a over the code-base, but I can rephrase it if you prefer.

I see, no need to change, thank you

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 53d58dd into intel:main Dec 4, 2024
4 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.

2 participants