aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-10-01 19:24:15 +0200
committerXavier Claessens <xclaesse@gmail.com>2020-10-01 13:42:56 -0400
commit1d04caff29f675329ecb6491b50578474d71b6f4 (patch)
treeb362fb5de25956007bfc94164f7a7db72308b202
parenta65fffd127ec7597ae4b8a745ded33c5b153e59b (diff)
downloadmeson-1d04caff29f675329ecb6491b50578474d71b6f4.zip
meson-1d04caff29f675329ecb6491b50578474d71b6f4.tar.gz
meson-1d04caff29f675329ecb6491b50578474d71b6f4.tar.bz2
Document search order of find_program
-rw-r--r--docs/markdown/Reference-manual.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 3279ddf..563cfe4 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -699,7 +699,10 @@ The returned object also has methods that are documented in the
`program_name1` here is a string that can be an executable or script
to be searched for in `PATH`, or a script in the current source
-directory.
+directory. The search order is: program overrides (set via meson.override_find_program());
+subprojects (if wrap_mode is set to `forcefallback`); your project's source tree;
+$PATH; the python3 libdir if your command starts with `python3` and finally
+subprojects again, if wrap_mode is set to anything but `nofallback`.
*(since 0.37.0)* `program_name2` and later positional arguments are used as fallback
strings to search for. This is meant to be used for cases where the