Skip to content

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