We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f1f693 commit 4f8f35dCopy full SHA for 4f8f35d
compiler/rustc_codegen_cranelift/src/driver/aot.rs
@@ -65,6 +65,21 @@ impl OngoingCodegen {
65
backend_config: &BackendConfig,
66
) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>) {
67
let mut work_products = FxIndexMap::default();
68
+
69
+ if !backend_config.disable_incr_cache {
70
+ if let Some(path) = self.metadata.path() {
71
+ if let Some((id, product)) =
72
+ rustc_incremental::copy_cgu_workproduct_to_incr_comp_cache_dir(
73
+ sess,
74
+ "metadata",
75
+ &[("rmeta", path)],
76
+ )
77
+ {
78
+ work_products.insert(id, product);
79
+ }
80
81
82
83
let mut modules = vec![];
84
85
for module_codegen in self.modules {
0 commit comments