@@ -21,20 +21,20 @@ use std::path::{Path, PathBuf};
21
21
use std:: process:: Command ;
22
22
use std:: time:: { Duration , Instant } ;
23
23
24
- use cache:: { Cache , Interned , INTERNER } ;
25
- use check;
26
- use compile;
27
- use dist;
28
- use doc;
29
- use flags:: Subcommand ;
30
- use install;
31
- use native;
32
- use test;
33
- use tool;
34
- use util:: { add_lib_path, exe, libdir} ;
35
- use { Build , DocTests , Mode , GitRepo } ;
36
-
37
- pub use Compiler ;
24
+ use crate :: cache:: { Cache , Interned , INTERNER } ;
25
+ use crate :: check;
26
+ use crate :: compile;
27
+ use crate :: dist;
28
+ use crate :: doc;
29
+ use crate :: flags:: Subcommand ;
30
+ use crate :: install;
31
+ use crate :: native;
32
+ use crate :: test;
33
+ use crate :: tool;
34
+ use crate :: util:: { add_lib_path, exe, libdir} ;
35
+ use crate :: { Build , DocTests , Mode , GitRepo } ;
36
+
37
+ pub use crate :: Compiler ;
38
38
39
39
use petgraph:: graph:: NodeIndex ;
40
40
use petgraph:: Graph ;
@@ -389,7 +389,6 @@ impl<'a> Builder<'a> {
389
389
test:: UiFullDeps ,
390
390
test:: RunPassFullDeps ,
391
391
test:: RunFailFullDeps ,
392
- test:: CompileFailFullDeps ,
393
392
test:: Rustdoc ,
394
393
test:: Pretty ,
395
394
test:: RunPassPretty ,
@@ -417,6 +416,7 @@ impl<'a> Builder<'a> {
417
416
test:: Rustfmt ,
418
417
test:: Miri ,
419
418
test:: Clippy ,
419
+ test:: CompiletestTest ,
420
420
test:: RustdocJS ,
421
421
test:: RustdocTheme ,
422
422
// Run bootstrap close to the end as it's unlikely to fail
@@ -685,6 +685,11 @@ impl<'a> Builder<'a> {
685
685
. env ( "RUSTDOC_REAL" , self . rustdoc ( host) )
686
686
. env ( "RUSTDOC_CRATE_VERSION" , self . rust_version ( ) )
687
687
. env ( "RUSTC_BOOTSTRAP" , "1" ) ;
688
+
689
+ // Remove make-related flags that can cause jobserver problems.
690
+ cmd. env_remove ( "MAKEFLAGS" ) ;
691
+ cmd. env_remove ( "MFLAGS" ) ;
692
+
688
693
if let Some ( linker) = self . linker ( host) {
689
694
cmd. env ( "RUSTC_TARGET_LINKER" , linker) ;
690
695
}
@@ -793,7 +798,7 @@ impl<'a> Builder<'a> {
793
798
}
794
799
795
800
// Set a flag for `check` so that certain build scripts can do less work
796
- // (e.g. not building/requiring LLVM).
801
+ // (e.g., not building/requiring LLVM).
797
802
if cmd == "check" {
798
803
cargo. env ( "RUST_CHECK" , "1" ) ;
799
804
}
@@ -923,12 +928,12 @@ impl<'a> Builder<'a> {
923
928
cargo. env ( "RUSTC_FORCE_UNSTABLE" , "1" ) ;
924
929
925
930
// Currently the compiler depends on crates from crates.io, and
926
- // then other crates can depend on the compiler (e.g. proc-macro
931
+ // then other crates can depend on the compiler (e.g., proc-macro
927
932
// crates). Let's say, for example that rustc itself depends on the
928
933
// bitflags crate. If an external crate then depends on the
929
934
// bitflags crate as well, we need to make sure they don't
930
935
// conflict, even if they pick the same version of bitflags. We'll
931
- // want to make sure that e.g. a plugin and rustc each get their
936
+ // want to make sure that e.g., a plugin and rustc each get their
932
937
// own copy of bitflags.
933
938
934
939
// Cargo ensures that this works in general through the -C metadata
@@ -1247,7 +1252,7 @@ impl<'a> Builder<'a> {
1247
1252
#[ cfg( test) ]
1248
1253
mod __test {
1249
1254
use super :: * ;
1250
- use config:: Config ;
1255
+ use crate :: config:: Config ;
1251
1256
use std:: thread;
1252
1257
1253
1258
fn configure ( host : & [ & str ] , target : & [ & str ] ) -> Config {
0 commit comments