diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-03-06 17:17:16 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-03-11 15:59:05 +0100 |
commit | b885deebf9fc02b9f1e849d91de93fadcfb71a73 (patch) | |
tree | a26b4f9ad05e479b51b97a1a4c489525243c241a /src/buildtool/main/analyse.cpp | |
parent | 1bba42d5168a13dbebda8820fc5e28df1d401669 (diff) | |
download | justbuild-b885deebf9fc02b9f1e849d91de93fadcfb71a73.tar.gz |
just analyse: Use explicit target cache instance
The serve endpoint always has to access the correctly sharded
target cache, including during analysis. For this purpose, the
target cache instance interrogated during analysis has to be
explicitly provided.
Diffstat (limited to 'src/buildtool/main/analyse.cpp')
-rw-r--r-- | src/buildtool/main/analyse.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buildtool/main/analyse.cpp b/src/buildtool/main/analyse.cpp index 6e8aeccc..6ea61de2 100644 --- a/src/buildtool/main/analyse.cpp +++ b/src/buildtool/main/analyse.cpp @@ -96,6 +96,7 @@ namespace Target = BuildMaps::Target; const Target::ConfiguredTarget& id, gsl::not_null<Target::ResultTargetMap*> const& result_map, gsl::not_null<RepositoryConfig*> const& repo_config, + ActiveTargetCache const& target_cache, std::size_t jobs, std::optional<std::string> const& request_action_input) -> std::optional<AnalysisResult> { @@ -119,6 +120,7 @@ namespace Target = BuildMaps::Target; &absent_target_map, result_map, repo_config, + target_cache, jobs); Logger::Log(LogLevel::Info, "Requested target is {}", id.ToString()); AnalysedTargetPtr target{}; |