Fix CG_CLIF_DISABLE_INCR_CACHE
This commit is contained in:
parent
bdc597d512
commit
b972010887
1 changed files with 26 additions and 22 deletions
|
@ -394,7 +394,10 @@ pub(crate) fn run_aot(
|
|||
let modules = tcx.sess.time("codegen mono items", || {
|
||||
cgus.iter()
|
||||
.enumerate()
|
||||
.map(|(i, cgu)| match cgu_reuse[i] {
|
||||
.map(|(i, cgu)| {
|
||||
let cgu_reuse =
|
||||
if backend_config.disable_incr_cache { CguReuse::No } else { cgu_reuse[i] };
|
||||
match cgu_reuse {
|
||||
CguReuse::No => {
|
||||
let dep_node = cgu.codegen_dep_node(tcx);
|
||||
tcx.dep_graph
|
||||
|
@ -417,6 +420,7 @@ pub(crate) fn run_aot(
|
|||
concurrency_limiter.job_already_done();
|
||||
OngoingModuleCodegen::Sync(reuse_workproduct_for_cgu(tcx, cgu))
|
||||
}
|
||||
}
|
||||
})
|
||||
.collect::<Vec<_>>()
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue