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

Remove COMDAT support in the next release #22

Closed
bjorn3 opened this issue Aug 18, 2024 · 4 comments · Fixed by #23
Closed

Remove COMDAT support in the next release #22

bjorn3 opened this issue Aug 18, 2024 · 4 comments · Fixed by #23

Comments

@bjorn3
Copy link
Member

bjorn3 commented Aug 18, 2024

According to #20 (comment) it turns out that it isn't actually supported by the linker after all.

@ChrisDenton
Copy link
Member

I've taken a simpler approach in ChrisDenton@a5b424a which I've more thoroughly tested as working. Not PRing it yet unless/until rust-lang/rust#129257 comes back green.

If that works, we can probably just rename the flag to something more generic without breaking the interface (I used whole_archive_compat in my experiment).

@ChrisDenton
Copy link
Member

@bjorn3 it looks like the published version is from an old commit? Looking at the published source, it doesn't seem to have the latest changes.

Published: https://docs.rs/crate/ar_archive_writer/0.4.1/source/src/coff_import_file.rs#215 and
Master:

fn new(s: &'a str, m: MachineTypes, whole_archive_compat: bool) -> Result<Self> {

@bjorn3
Copy link
Member Author

bjorn3 commented Aug 20, 2024

Forgot to pull before I published... Published as v0.4.2. The commit for v0.4.1 has been orphaned, but is still available under the v0.4.1 tag.

#21 would have helped avoid this.

@ChrisDenton
Copy link
Member

Ah thanks!

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 a pull request may close this issue.

2 participants