@@ -1072,6 +1072,7 @@ impl Config {
10721072 config. bindir = "bin" . into ( ) ;
10731073 config. dist_include_mingw_linker = true ;
10741074 config. dist_compression_profile = "fast" . into ( ) ;
1075+ config. rustc_parallel = true ;
10751076
10761077 config. stdout_is_tty = std:: io:: stdout ( ) . is_terminal ( ) ;
10771078 config. stderr_is_tty = std:: io:: stderr ( ) . is_terminal ( ) ;
@@ -1111,7 +1112,7 @@ impl Config {
11111112
11121113 fn parse_inner ( args : & [ String ] , get_toml : impl Fn ( & Path ) -> TomlConfig ) -> Config {
11131114 let mut flags = Flags :: parse ( & args) ;
1114- let mut config = Config :: default_opts ( ) ;
1115+ let mut config: Config = Config :: default_opts ( ) ;
11151116
11161117 // Set flags.
11171118 config. paths = std:: mem:: take ( & mut flags. paths ) ;
@@ -1429,7 +1430,9 @@ impl Config {
14291430 set ( & mut config. use_lld , rust. use_lld ) ;
14301431 set ( & mut config. lld_enabled , rust. lld ) ;
14311432 set ( & mut config. llvm_tools_enabled , rust. llvm_tools ) ;
1432- config. rustc_parallel = rust. parallel_compiler . unwrap_or ( false ) ;
1433+ config. rustc_parallel = rust
1434+ . parallel_compiler
1435+ . unwrap_or ( config. channel == "dev" || config. channel == "nightly" ) ;
14331436 config. rustc_default_linker = rust. default_linker ;
14341437 config. musl_root = rust. musl_root . map ( PathBuf :: from) ;
14351438 config. save_toolstates = rust. save_toolstates . map ( PathBuf :: from) ;
0 commit comments