summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-12-11 16:43:36 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-12-12 16:03:54 +0100
commit4438ea4c642765e606b91b2fae0a68a8a9f2ce06 (patch)
tree924c035e46c87394bef04bbf44b66fb9863ce8f4 /src
parent576f4e1d7f6a06491d51ce2c9cb54144facc0454 (diff)
downloadjustbuild-4438ea4c642765e606b91b2fae0a68a8a9f2ce06.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/computed_roots/evaluate.cpp4
1 files changed, 4 insertions, 0 deletions
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,