diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-12-21 17:05:32 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-12-22 14:00:39 +0100 |
commit | 1c953b099d37363452f7ecce5bdec1097c66b920 (patch) | |
tree | 07e3970f863c5ebd94574d4348c08e77b8edd695 /src | |
parent | d078a42ad24a6e45b7f4f48ef675355a9883e2ad (diff) | |
download | justbuild-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.cpp | 14 |
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: {} -> {}", |