aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-04-20 19:14:49 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-07-01 09:51:57 -0400
commitf08eed37cb69ba0d793c0f1d086eaef7f25c2ea3 (patch)
treebfebeb97c57945c43e948998f9f01240915c2022 /docs/markdown/snippets
parent288d1ae5a5de13c8844635023caf27378df4919b (diff)
downloadmeson-f08eed37cb69ba0d793c0f1d086eaef7f25c2ea3.zip
meson-f08eed37cb69ba0d793c0f1d086eaef7f25c2ea3.tar.gz
meson-f08eed37cb69ba0d793c0f1d086eaef7f25c2ea3.tar.bz2
find_program: Fallback if a wrap file provide the program name
We don't need the legacy variable name system as for dependency() fallbacks because meson.override_find_program() is largely used already, so we can just rely on it.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/implicit_fallback.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/implicit_fallback.md b/docs/markdown/snippets/implicit_fallback.md
index bad1c71..3d5a833 100644
--- a/docs/markdown/snippets/implicit_fallback.md
+++ b/docs/markdown/snippets/implicit_fallback.md
@@ -14,3 +14,8 @@ Wrap files can define the dependencies it provides in the `[provide]` section.
When a wrap file provides the dependency `foo` any call do `dependency('foo')`
will automatically fallback to that subproject even if no `fallback` keyword
argument is given. See [Wrap documentation](Wrap-dependency-system-manual.md#provide_section).
+
+## `find_program()` fallback
+
+When a program cannot be found on the system but a wrap file has its name in the
+`[provide]` section, that subproject will be used as fallback.