From b2dc277c1e379588eb4795b2b93bbf3c34a1fed6 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Fri, 21 Feb 2020 13:51:28 -0800 Subject: docs: why 'ninja test' depends on build_by_default targets [skip ci] Fixes #1949 --- docs/markdown/Reference-manual.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/markdown') diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index dd5893c7f..ab7605dda 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -320,8 +320,12 @@ is the name of this target and the keyword arguments are the following. - `build_by_default` *(added 0.38)* causes, when set to true, to - have this target be built by default, that is, when invoking plain - `ninja`; the default value is false + have this target be built by default. This means it will be built when + `ninja` is called without any arguments or asked to build a target + like `ninja test` that depends on ninja's [default + target](https://ninja-build.org/manual.html#_default_target_statements) + set to `all` by meson. The same behavior applies for backends other + than `ninja`. The default value is `false`. *(changed in 0.50)* if `build_by_default` is explicitly set to false, `install` will no longer override it. If `build_by_default` is not set, `install` will still determine its default. -- cgit v1.2.3