-
Notifications
You must be signed in to change notification settings - Fork 8
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
Disable incremental for std crates #44
Comments
Heh an excellent point! I think you're referring to this block, right? I think that this sort of logic ( I wonder if the |
Sounds like a good idea to me. |
build-std: Don't treat std like a "local" package. This changes it so that build-std will not treat the std crates like a "local" package. This has the following changes: - std does not build with incremental. This generally shouldn't be needed, and incremental has various bugs with std crates. - Cargo's dep-info fingerprint tracking will not track the std crate sources, these are tracked via other means. - Cargo's `.d` dep-info file does not include std crate sources. - Lints are capped to "allow" for std crates, and warnings are not shown by default. Closes rust-lang/wg-cargo-std-aware#44 Closes rust-lang/wg-cargo-std-aware#55
Closed by rust-lang/cargo#8177. |
Incremental is not needed for std crates, so it should probably not be used.
I'm torn on exactly how to implement. Some options:
Profiles::get_profile
is_std
flag toUnit
, and check that when generating flags. This flag may be needed for other reasons, and would end up being the simplest change, but a bit of a hack.The text was updated successfully, but these errors were encountered: