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

Make the null import descriptor name unique to the import library #23

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

ChrisDenton
Copy link
Member

It turns out that the name of the null import descriptor is less special than I had assumed. We can use anything. So this makes the null import descriptor incorporate the name of the library to avoid any conflicts when using /WHOLEARCHIVE. This is done only if the whole_archive_compat option is set.

I've tested this locally with different targets and both MSVC and LLVM can use the import libraries it generates. Also this approach passes Rust's CI.

Closes #22 because we reuse the same flag for essentially the same purpose and renaming an argument is not a semver break.

@bjorn3 bjorn3 merged commit b54f093 into rust-lang:master Aug 19, 2024
2 checks passed
@bjorn3
Copy link
Member

bjorn3 commented Aug 19, 2024

Thanks! Published as v0.4.1.

@ChrisDenton ChrisDenton deleted the rename branch August 19, 2024 17:37
@ChrisDenton
Copy link
Member Author

Great! I've updated my rustc PR.

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.

Remove COMDAT support in the next release
3 participants