From d20477656ebce375a0fd73f51150e41efdcd351b Mon Sep 17 00:00:00 2001 From: Thanh Vu Date: Tue, 31 Dec 2024 08:21:45 +0700 Subject: [PATCH] Map const-values in output file map for incremental --- tools/worker/output_file_map.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/worker/output_file_map.cc b/tools/worker/output_file_map.cc index af3d0a803..5a4e9faef 100644 --- a/tools/worker/output_file_map.cc +++ b/tools/worker/output_file_map.cc @@ -99,8 +99,8 @@ void OutputFileMap::UpdateForIncremental( auto kind = output.key(); auto path = output.value().get(); - if (kind == "object") { - // If the file kind is "object", we want to update the path to point to + if (kind == "object" || kind == "const-values") { + // If the file kind is "object" or "const-values", we want to update the path to point to // the incremental storage area and then add a "swift-dependencies" // in the same location. auto new_path = MakeIncrementalOutputPath(path, derived);