diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-27 16:16:09 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 13:32:39 +0200 |
commit | 4ebb3bf82551c334d16f4935c751fb554224e19c (patch) | |
tree | c358d268e8704bd1b50430f4305ed713b5fb5812 /src/buildtool/main/main.cpp | |
parent | 9f5dcef077a3db2f6c791e403e5036f6464c9576 (diff) | |
download | justbuild-4ebb3bf82551c334d16f4935c751fb554224e19c.tar.gz |
Pass Storage to RepositoryConfig
...and adjust AnalyseContext.
Diffstat (limited to 'src/buildtool/main/main.cpp')
-rw-r--r-- | src/buildtool/main/main.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp index 878cfc50..293c8002 100644 --- a/src/buildtool/main/main.cpp +++ b/src/buildtool/main/main.cpp @@ -991,12 +991,11 @@ auto main(int argc, char* argv[]) -> int { // create progress tracker for export targets Progress exports_progress{}; - AnalyseContext analyse_ctx{ - .repo_config = &repo_config, - .target_cache = &Storage::Instance().TargetCache(), - .statistics = &stats, - .progress = &exports_progress, - .serve = serve ? &*serve : nullptr}; + AnalyseContext analyse_ctx{.repo_config = &repo_config, + .storage = &Storage::Instance(), + .statistics = &stats, + .progress = &exports_progress, + .serve = serve ? &*serve : nullptr}; auto result = AnalyseTarget(&analyse_ctx, id, |