@@ -94,12 +94,14 @@ impl OngoingCodegen {
9494 ( "o" , & module_regular. object . as_ref ( ) . unwrap ( ) ) ,
9595 ( "asm.o" , & module_global_asm. object . as_ref ( ) . unwrap ( ) ) ,
9696 ] ,
97+ & [ ] ,
9798 )
9899 } else {
99100 rustc_incremental:: copy_cgu_workproduct_to_incr_comp_cache_dir (
100101 sess,
101102 & module_regular. name ,
102103 & [ ( "o" , & module_regular. object . as_ref ( ) . unwrap ( ) ) ] ,
104+ & [ ] ,
103105 )
104106 } ;
105107 if let Some ( ( work_product_id, work_product) ) = work_product {
@@ -369,6 +371,7 @@ fn emit_cgu(
369371 bytecode : None ,
370372 assembly : None ,
371373 llvm_ir : None ,
374+ links_from_incr_cache : Vec :: new ( ) ,
372375 } ) ,
373376 existing_work_product : None ,
374377 } )
@@ -414,6 +417,7 @@ fn emit_module(
414417 bytecode : None ,
415418 assembly : None ,
416419 llvm_ir : None ,
420+ links_from_incr_cache : Vec :: new ( ) ,
417421 } )
418422}
419423
@@ -464,6 +468,7 @@ fn reuse_workproduct_for_cgu(
464468 bytecode : None ,
465469 assembly : None ,
466470 llvm_ir : None ,
471+ links_from_incr_cache : Vec :: new ( ) ,
467472 } ,
468473 module_global_asm : has_global_asm. then ( || CompiledModule {
469474 name : cgu. name ( ) . to_string ( ) ,
@@ -473,6 +478,7 @@ fn reuse_workproduct_for_cgu(
473478 bytecode : None ,
474479 assembly : None ,
475480 llvm_ir : None ,
481+ links_from_incr_cache : Vec :: new ( ) ,
476482 } ) ,
477483 existing_work_product : Some ( ( cgu. work_product_id ( ) , work_product) ) ,
478484 } )
@@ -710,6 +716,7 @@ pub(crate) fn run_aot(
710716 bytecode : None ,
711717 assembly : None ,
712718 llvm_ir : None ,
719+ links_from_incr_cache : Vec :: new ( ) ,
713720 } )
714721 } else {
715722 None
0 commit comments