aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2020-10-12 17:50:14 +0300
committerGitHub <noreply@github.com>2020-10-12 17:50:14 +0300
commitaae23dfff3aa8269a07b6d42479a00923bf73c6e (patch)
tree6ab489fab1e889141ac3560af38c3da477628b7b /docs/markdown/snippets
parentba71fde18652ca156a35cd576dd9981202088424 (diff)
parent726b82205492a9e1f2dfd0fba96b237b51eeb428 (diff)
downloadmeson-aae23dfff3aa8269a07b6d42479a00923bf73c6e.zip
meson-aae23dfff3aa8269a07b6d42479a00923bf73c6e.tar.gz
meson-aae23dfff3aa8269a07b6d42479a00923bf73c6e.tar.bz2
Merge pull request #7740 from bonzini/fallback-false
Allow blocking/forcing automatic subproject search
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/fallback_bool.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/snippets/fallback_bool.md b/docs/markdown/snippets/fallback_bool.md
new file mode 100644
index 0000000..14bef50
--- /dev/null
+++ b/docs/markdown/snippets/fallback_bool.md
@@ -0,0 +1,8 @@
+## Controlling subproject dependencies with `dependency(allow_fallback: ...)`
+
+As an alternative to the `fallback` keyword argument to `dependency`,
+you may use `allow_fallback`, which accepts a boolean value. If `true`
+and the dependency is not found on the system, Meson will fallback
+to a subproject that provides this dependency, even if the dependency
+is optional. If `false`, Meson will not fallback even if a subproject
+provides this dependency.