File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 279279# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
280280# backtrace = true
281281
282+ # Whether to always use incremental compilation when building rustc
283+ # incremental = false
284+
282285# Build rustc with experimental parallelization
283286# experimental-parallel-queries = false
284287
Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ struct Rust {
303303 dist_src : Option < bool > ,
304304 quiet_tests : Option < bool > ,
305305 test_miri : Option < bool > ,
306+ incremental : Option < bool > ,
306307 save_toolstates : Option < String > ,
307308 codegen_backends : Option < Vec < String > > ,
308309 codegen_backends_dir : Option < String > ,
@@ -529,6 +530,10 @@ impl Config {
529530 set ( & mut config. rust_dist_src , rust. dist_src ) ;
530531 set ( & mut config. quiet_tests , rust. quiet_tests ) ;
531532 set ( & mut config. test_miri , rust. test_miri ) ;
533+ // in the case "false" is set explicitly, do not overwrite the command line args
534+ if let Some ( true ) = rust. incremental {
535+ config. incremental = true ;
536+ }
532537 set ( & mut config. wasm_syscall , rust. wasm_syscall ) ;
533538 set ( & mut config. lld_enabled , rust. lld ) ;
534539 config. rustc_parallel_queries = rust. experimental_parallel_queries . unwrap_or ( false ) ;
You can’t perform that action at this time.
0 commit comments