From 43e5a60d5cffc75f7edc87d653690b2b77f4677d Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Fri, 6 Dec 2024 12:44:22 +0100 Subject: analysis: Support artifact build arguments As analysis now can compute roots, i.e., can build artifacts, it needs to support setting the local launcher, action timeout, and the build jobs. The stage and rebuild arguments, which are also needed by the graph traversal, as well as other build-related arguments, remain not supported for the analysis subcomamnd, however they remain honored if set by subcommands that trigger an implicit analysis (e.g., build or install). --- src/buildtool/common/cli.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/buildtool/common/cli.hpp') diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index 2a04f413..3c7ac45e 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -514,6 +514,12 @@ static inline auto SetupBuildArguments( clargs->build_jobs, "Number of jobs to run during build phase (Default: same as jobs).") ->type_name("NUM"); +} + +static inline auto SetupExtendedBuildArguments( + gsl::not_null const& app, + gsl::not_null const& clargs) { + app->add_option("--dump-artifacts", clargs->dump_artifacts, "Dump artifacts to file (use - for stdout).") -- cgit v1.2.3