diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-22 12:03:46 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-11-22 12:10:02 +0100 |
commit | 30f22abc8547621c1b63ac80e1ae4f4e23cafeb1 (patch) | |
tree | 4401a456089906c8e978c5e774b62104d5fe50c7 /src | |
parent | 6a54ab1e83648e7ad5bb4dec53f1b8aeb821da9c (diff) | |
download | justbuild-30f22abc8547621c1b63ac80e1ae4f4e23cafeb1.tar.gz |
Computed roots: use separate statistics for each root evaluation
... instead of mixing up the counting with the global action count,
that then would exceed the top-level discovered actions.
Diffstat (limited to 'src')
-rw-r--r-- | src/buildtool/computed_roots/evaluate.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/buildtool/computed_roots/evaluate.cpp b/src/buildtool/computed_roots/evaluate.cpp index 2c99f808..0d86d397 100644 --- a/src/buildtool/computed_roots/evaluate.cpp +++ b/src/buildtool/computed_roots/evaluate.cpp @@ -272,7 +272,13 @@ void ComputeAndFill( auto root_build_args = *traverser_args; root_build_args.stage = StageArguments{.output_dir = root_dir, .remember = true}; - GraphTraverser traverser{root_build_args, context, reporter, &build_logger}; + auto root_exec_context = ExecutionContext{context->repo_config, + context->apis, + context->remote_context, + &statistics, + &progress}; + GraphTraverser traverser{ + root_build_args, &root_exec_context, reporter, &build_logger}; std::optional<AnalyseAndBuildResult> build_result{}; { std::shared_lock computing{*config_lock}; |