From 8798a8bdf82c87a136c07410d65267859f92e851 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 8 Oct 2024 15:56:01 +0200 Subject: just analyse: support dumping the action graph without origins The origins of actions are useful for understanding the action graph; if, however, the action graph is only to be used for further computaiton, this is unnecessary information. Therefore, add an option to dump the action graph without origins. --- 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 0571acb8..7f935364 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -71,6 +71,7 @@ struct AnalysisArguments { std::optional rule_root; std::optional expression_root; std::optional graph_file; + std::optional graph_file_plain; std::optional artifacts_to_build_file; std::optional serve_errors_file; }; @@ -343,6 +344,11 @@ static inline auto SetupAnalysisArguments( clargs->graph_file, "File path for writing the action graph description to.") ->type_name("PATH"); + app->add_option("--dump-plain-graph", + clargs->graph_file_plain, + "File path for writing the action graph description " + "(without origins) to.") + ->type_name("PATH"); app->add_option("--dump-artifacts-to-build", clargs->artifacts_to_build_file, "File path for writing the artifacts to build to.") -- cgit v1.2.3