File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 279
279
# Whether or not `panic!`s generate backtraces (RUST_BACKTRACE)
280
280
#backtrace = true
281
281
282
+ # Whether to always use incremental compilation when building rustc
283
+ #incremental = false
284
+
282
285
# Build rustc with experimental parallelization
283
286
#experimental-parallel-queries = false
284
287
Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ struct Rust {
303
303
dist_src : Option < bool > ,
304
304
quiet_tests : Option < bool > ,
305
305
test_miri : Option < bool > ,
306
+ incremental : Option < bool > ,
306
307
save_toolstates : Option < String > ,
307
308
codegen_backends : Option < Vec < String > > ,
308
309
codegen_backends_dir : Option < String > ,
@@ -529,6 +530,10 @@ impl Config {
529
530
set ( & mut config. rust_dist_src , rust. dist_src ) ;
530
531
set ( & mut config. quiet_tests , rust. quiet_tests ) ;
531
532
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
+ }
532
537
set ( & mut config. wasm_syscall , rust. wasm_syscall ) ;
533
538
set ( & mut config. lld_enabled , rust. lld ) ;
534
539
config. rustc_parallel_queries = rust. experimental_parallel_queries . unwrap_or ( false ) ;
You can’t perform that action at this time.
0 commit comments