From 4baaf93a0387f30cef93a39b5a6841218c42c308 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 22 Dec 2022 10:27:09 +0100 Subject: Add option --dump-export-targets ... dumping only the configured targets that are export targets. Those targets are of particular interest as those are the targets, as they are the high-level caching points and also often serve as interface between projects. --- 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 6592a02f..4650f749 100644 --- a/src/buildtool/common/cli.hpp +++ b/src/buildtool/common/cli.hpp @@ -77,6 +77,7 @@ struct DiagnosticArguments { std::optional dump_trees{std::nullopt}; std::optional dump_vars{std::nullopt}; std::optional dump_targets{std::nullopt}; + std::optional dump_export_targets{std::nullopt}; std::optional dump_targets_graph{std::nullopt}; std::optional dump_anonymous{std::nullopt}; std::optional dump_nodes{std::nullopt}; @@ -283,6 +284,10 @@ static inline auto SetupDiagnosticArguments( clargs->dump_targets, "Dump targets to file (use - for stdout).") ->type_name("PATH"); + app->add_option("--dump-export-targets", + clargs->dump_export_targets, + "Dump \"export\" 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.") -- cgit v1.2.3