File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,13 @@ impl<'a> CargoProcess<'a> {
258
258
}
259
259
260
260
fn run_rustc ( & mut self ) -> anyhow:: Result < ( ) > {
261
+ log:: info!(
262
+ "run_rustc with incremental={}, run_kind={:?}, patch={:?}" ,
263
+ self . incremental,
264
+ self . processor_etc. as_ref( ) . map( |v| v. 1 ) ,
265
+ self . processor_etc. as_ref( ) . and_then( |v| v. 3 )
266
+ ) ;
267
+
261
268
loop {
262
269
// Get the subcommand. If it's not `rustc` it must should be a
263
270
// subcommand that itself invokes `rustc` (so that the `FAKE_RUSTC`
@@ -962,9 +969,14 @@ impl Benchmark {
962
969
// Build everything, including all dependent crates, in a temp dir with
963
970
// the first build kind we're building for. The intent is to cache build
964
971
// dependencies at least between runs.
972
+ //
973
+ // Cache with both incremental and non-incremental.
965
974
let prep_dir = self . make_temp_dir ( & self . path ) ?;
966
975
self . mk_cargo_process ( compiler, prep_dir. path ( ) , build_kinds[ 0 ] )
967
976
. run_rustc ( ) ?;
977
+ self . mk_cargo_process ( compiler, prep_dir. path ( ) , build_kinds[ 0 ] )
978
+ . incremental ( true )
979
+ . run_rustc ( ) ?;
968
980
969
981
for & build_kind in build_kinds {
970
982
eprintln ! ( "Running {}: {:?} + {:?}" , self . name, build_kind, run_kinds) ;
You can’t perform that action at this time.
0 commit comments