1
Fork 0

only cache codegen_fn_attrs on disk if its local

This commit is contained in:
lcnr 2022-04-27 14:50:50 +02:00
parent 501067cb05
commit 66ff6c32e5
2 changed files with 2 additions and 1 deletions

View file

@ -1080,7 +1080,7 @@ rustc_queries! {
query codegen_fn_attrs(def_id: DefId) -> CodegenFnAttrs {
desc { |tcx| "computing codegen attributes of `{}`", tcx.def_path_str(def_id) }
storage(ArenaCacheSelector<'tcx>)
cache_on_disk_if { true }
cache_on_disk_if { def_id.is_local() }
separate_provide_extern
}