aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-02-08 18:33:49 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2020-02-12 13:33:00 +0000
commitc5a32c2afe843798d714fc9087bf55ad996b4052 (patch)
tree646008b174c405b5d419a6a87c13b9e63b62a402 /docs/markdown/Reference-manual.md
parent7a159ff1e1e947f20a017bbc8e89c1701a9d7098 (diff)
downloadmeson-c5a32c2afe843798d714fc9087bf55ad996b4052.zip
meson-c5a32c2afe843798d714fc9087bf55ad996b4052.tar.gz
meson-c5a32c2afe843798d714fc9087bf55ad996b4052.tar.bz2
Refine behaviour of add_languages() when native: is missing
This improves the common case of a simple meson.build which doesn't contain any 'native: true' targets to not require a native compiler when cross-compiling, without needing any changes in the meson.build. v2: Do it the right way around!
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 3b07b5f..3e4cd44 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -75,12 +75,16 @@ specified is not found, Meson will halt. Since *0.47.0* the value of a
[`feature`](Build-options.md#features) option can also be passed.
- `native` if set to `true`, the language will be used to compile for the build
- machine, if `false`, for the host machine. If omitted, the language may be
- used for either. Since *0.54.0*. The default may change to `false` in a future
- meson version.
+ machine, if `false`, for the host machine. Since *0.54.0*.
Returns `true` if all languages specified were found and `false` otherwise.
+If `native` is omitted, the languages may be used for either build or host
+machine, but are never required for the build machine. (i.e. it is equivalent
+to `add_languages(*langs*, native: false, required: *required*) and
+add_languages(*langs*, native: true, required: false)`. This default behaviour
+may change to `native: false` in a future meson version.
+
### add_project_arguments()
``` meson