From 39f3122dd0977a5ea4e58a81ba4665353dda3499 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 25 Aug 2022 14:40:55 +0200 Subject: Also track the the dependencies on configured targets ... to be able to report the respective graph for later analysis by other tools. --- src/buildtool/common/cli.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/buildtool/common/cli.hpp') diff --git a/src/buildtool/common/cli.hpp b/src/buildtool/common/cli.hpp index f0875aaa..1f841755 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -62,6 +62,7 @@ struct DiagnosticArguments { std::optional dump_blobs{std::nullopt}; std::optional dump_trees{std::nullopt}; std::optional dump_targets{std::nullopt}; + std::optional dump_targets_graph{std::nullopt}; std::optional dump_anonymous{std::nullopt}; std::optional dump_nodes{std::nullopt}; }; @@ -256,6 +257,10 @@ static inline auto SetupDiagnosticArguments( clargs->dump_targets, "Dump targets to file (use - for stdout).") ->type_name("PATH"); + app->add_option("--dump-targets-graph", + clargs->dump_targets_graph, + "Dump the graph of the configured targets to file.") + ->type_name("PATH"); app->add_option("--dump-anonymous", clargs->dump_anonymous, "Dump anonymous targets to file (use - for stdout).") -- cgit v1.2.3