From 4438ea4c642765e606b91b2fae0a68a8a9f2ce06 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 11 Dec 2024 16:43:36 +0100 Subject: Computed roots: normalize build arguments While building a computed root generally follows the way the main build is carried out, certain parameters need to be cleared. In particular, the computed root is not part of the rebuild and no build output should be dumped anywhere. --- src/buildtool/computed_roots/evaluate.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/buildtool/computed_roots/evaluate.cpp b/src/buildtool/computed_roots/evaluate.cpp index 487a93a2..3a8940a4 100644 --- a/src/buildtool/computed_roots/evaluate.cpp +++ b/src/buildtool/computed_roots/evaluate.cpp @@ -305,6 +305,10 @@ void ComputeAndFill( auto root_build_args = *traverser_args; root_build_args.stage = StageArguments{.output_dir = root_dir, .remember = true}; + root_build_args.rebuild = std::nullopt; + root_build_args.build.print_to_stdout = std::nullopt; + root_build_args.build.dump_artifacts = std::nullopt; + root_build_args.build.show_runfiles = false; auto root_exec_context = ExecutionContext{context->repo_config, context->apis, context->remote_context, -- cgit v1.2.3