diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-08 13:21:55 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-05-09 15:37:47 +0200 |
commit | b5d143f529e4ebbeb7a1746312e38da815e2e321 (patch) | |
tree | 2275a4619794874f7e8efea1735d46a1912313dc /libbuild2/b.cli | |
parent | 00df206af5c80aba31bf7d180bdf03d617071e94 (diff) |
Add --load-only option in addition to --match-only
This option has the effect of loading all the subdirectory buildfiles that
are not explicitly included.
Diffstat (limited to 'libbuild2/b.cli')
-rw-r--r-- | libbuild2/b.cli | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libbuild2/b.cli b/libbuild2/b.cli index deb6a26..c9dfddd 100644 --- a/libbuild2/b.cli +++ b/libbuild2/b.cli @@ -663,8 +663,18 @@ namespace build2 bool --match-only { - "Match the rules but do not execute the operation. This mode is primarily - useful for profiling." + "Match the rules without executing the operation. This mode is primarily + useful for profiling and dumping the build system state." + } + + bool --load-only + { + "Match the rules only to \cb{alias{\}} targets ignoring other targets + and without executing the operation. In particular, this has the + effect of loading all the subdirectory \cb{buildfiles} that are not + explicitly included. Note that this option can only be used with the + \cb{perform(update)} action on an \cb{alias{\}} target, usually + \cb{dir{\}}." } bool --no-external-modules @@ -782,7 +792,8 @@ namespace build2 pre/post-operations (\cb{match} dumps the main operation only). Repeat this option to dump the state after multiple phases/variants. By default the entire build state is dumped but this behavior can be - altered with the \cb{--dump-scope} and \cb{--dump-target} options." + altered with the \cb{--dump-scope} and \cb{--dump-target} options. + See also the \cb{--match-only} and \cb{--load-only} options." } string --dump-format |