We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ae3cff commit a22af69Copy full SHA for a22af69
src/bootstrap/builder.rs
@@ -584,11 +584,10 @@ impl<'a> Builder<'a> {
584
cargo.env("RUST_CHECK", "1");
585
}
586
587
- // If we were invoked from `make` then that's already got a jobserver
588
- // set up for us so no need to tell Cargo about jobs all over again.
589
- if env::var_os("MAKEFLAGS").is_none() && env::var_os("MFLAGS").is_none() {
590
- cargo.arg("-j").arg(self.jobs().to_string());
591
- }
+ cargo.arg("-j").arg(self.jobs().to_string());
+ // Remove make-related flags to ensure Cargo can correctly set things up
+ cargo.env_remove("MAKEFLAGS");
+ cargo.env_remove("MFLAGS");
592
593
// FIXME: Temporary fix for https://github.com/rust-lang/cargo/issues/3005
594
// Force cargo to output binaries with disambiguating hashes in the name
0 commit comments