summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-12-21 17:05:32 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-12-22 14:00:39 +0100
commit1c953b099d37363452f7ecce5bdec1097c66b920 (patch)
tree07e3970f863c5ebd94574d4348c08e77b8edd695 /src
parentd078a42ad24a6e45b7f4f48ef675355a9883e2ad (diff)
downloadjustbuild-1c953b099d37363452f7ecce5bdec1097c66b920.tar.gz
export targets: identify as such in result_map
Make export targets identify themselves in the result_map, so that we have accurate knowledge of the export targets seen.
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/build_engine/target_map/export.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/buildtool/build_engine/target_map/export.cpp b/src/buildtool/build_engine/target_map/export.cpp
index 9f28eb3b..657ca73b 100644
--- a/src/buildtool/build_engine/target_map/export.cpp
+++ b/src/buildtool/build_engine/target_map/export.cpp
@@ -69,8 +69,11 @@ void FinalizeExport(
std::move(vars_set),
std::set<std::string>{},
std::move(deps_info));
- analysis_result = result_map->Add(
- target, effective_config, std::move(analysis_result), target_cache_key);
+ analysis_result = result_map->Add(target,
+ effective_config,
+ std::move(analysis_result),
+ target_cache_key,
+ true);
(*setter)(std::move(analysis_result));
}
} // namespace
@@ -150,8 +153,11 @@ void ExportRule(
std::set<std::string>{},
deps_info);
- analysis_result = result_map->Add(
- key.target, effective_config, std::move(analysis_result));
+ analysis_result = result_map->Add(key.target,
+ effective_config,
+ std::move(analysis_result),
+ std::nullopt,
+ true);
Logger::Log(LogLevel::Performance,
"Export target {} served from cache: {} -> {}",