diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-08-25 14:40:55 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2022-08-31 18:18:25 +0200 |
commit | 39f3122dd0977a5ea4e58a81ba4665353dda3499 (patch) | |
tree | 2421db4678d58f189be67137306584a71c5367b7 /src/buildtool/common/cli.hpp | |
parent | 81acde300b06c99341bb8e4b0528d4ce87dc9347 (diff) | |
download | justbuild-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.hpp | 5 |
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).") |