You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cargo builds a build.rs crate, it seems to use the same crate name of build-rs-build and empty disambiguation metadata. This causes problems for rustc's incremental compilation system, since the data for each such crate conflicts. Any kind of unique scheme would be fine (for example, the metadata could identify the crate for which the build.rs is being built).
If it's not otherwise available we just key it off the pkgid which should be
unique enough across compilations. This should help incremental compilation
efforts be "more incremental" across projects.
Closesrust-lang#2943
Always pass `-C metadata` to the compiler
If it's not otherwise available we just key it off the pkgid which should be
unique enough across compilations. This should help incremental compilation
efforts be "more incremental" across projects.
Closes#2943
When cargo builds a
build.rs
crate, it seems to use the same crate name ofbuild-rs-build
and empty disambiguation metadata. This causes problems for rustc's incremental compilation system, since the data for each such crate conflicts. Any kind of unique scheme would be fine (for example, the metadata could identify the crate for which thebuild.rs
is being built).cc @michaelwoerister
The text was updated successfully, but these errors were encountered: