We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a75c07 commit 9742c49Copy full SHA for 9742c49
compiler/rustc_codegen_cranelift/src/driver/aot.rs
@@ -56,6 +56,21 @@ impl OngoingCodegen {
56
backend_config: &BackendConfig,
57
) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>) {
58
let mut work_products = FxIndexMap::default();
59
+
60
+ if !backend_config.disable_incr_cache {
61
+ if let Some(path) = self.metadata.path() {
62
+ if let Some((id, product)) =
63
+ rustc_incremental::copy_cgu_workproduct_to_incr_comp_cache_dir(
64
+ sess,
65
+ "metadata",
66
+ &[("rmeta", path)],
67
+ )
68
+ {
69
+ work_products.insert(id, product);
70
+ }
71
72
73
74
let mut modules = vec![];
75
76
for module_codegen in self.modules {
0 commit comments