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

Add a warning when enabling LTO for crates with both cargo-types that support LTO and ones that don't. #4611

Open
Lymia opened this issue Oct 12, 2017 · 2 comments
Labels
A-crate-types Area: crate-type declaration (lib, staticlib, dylib, cdylib, etc.) A-diagnostics Area: Error and warning messages generated by Cargo itself. A-lto Area: link-time optimization S-triage Status: This issue is waiting on initial triage.

Comments

@Lymia
Copy link

Lymia commented Oct 12, 2017

As discussed in #2301, cargo silently builds a cdylib without LTO when the same crate also has rlib outputs, as rustc would otherwise error.

The only sign this has happened currently is the output binaries being way larger than expected. A warning would be very helpful for this.

@alexcrichton alexcrichton added the A-diagnostics Area: Error and warning messages generated by Cargo itself. label Oct 12, 2017
@stale

This comment has been minimized.

@stale stale bot added the stale label Sep 20, 2018
@Lymia
Copy link
Author

Lymia commented Sep 20, 2018

As far as I am aware, this is still an issue.

@stale stale bot removed the stale label Sep 20, 2018
@ehuss ehuss added the A-crate-types Area: crate-type declaration (lib, staticlib, dylib, cdylib, etc.) label Apr 6, 2020
@ehuss ehuss added the A-lto Area: link-time optimization label Jun 5, 2020
@epage epage added the S-triage Status: This issue is waiting on initial triage. label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-crate-types Area: crate-type declaration (lib, staticlib, dylib, cdylib, etc.) A-diagnostics Area: Error and warning messages generated by Cargo itself. A-lto Area: link-time optimization S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

4 participants