summaryrefslogtreecommitdiff
path: root/src/buildtool/common/cli.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2022-08-25 14:40:55 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2022-08-31 18:18:25 +0200
commit39f3122dd0977a5ea4e58a81ba4665353dda3499 (patch)
tree2421db4678d58f189be67137306584a71c5367b7 /src/buildtool/common/cli.hpp
parent81acde300b06c99341bb8e4b0528d4ce87dc9347 (diff)
downloadjustbuild-39f3122dd0977a5ea4e58a81ba4665353dda3499.tar.gz
Also track the the dependencies on configured targets
... to be able to report the respective graph for later analysis by other tools.
Diffstat (limited to 'src/buildtool/common/cli.hpp')
-rw-r--r--src/buildtool/common/cli.hpp5
1 files changed, 5 insertions, 0 deletions
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<std::string> dump_blobs{std::nullopt};
std::optional<std::string> dump_trees{std::nullopt};
std::optional<std::string> dump_targets{std::nullopt};
+ std::optional<std::string> dump_targets_graph{std::nullopt};
std::optional<std::string> dump_anonymous{std::nullopt};
std::optional<std::string> 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).")