diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2023-07-17 00:39:44 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2023-07-17 00:39:44 +0300 |
commit | 7824ff80dcaa457706a4f762e976383e6bd03daf (patch) | |
tree | df34812be3c863f7bc8b21213b23043e2fa84917 /docs/markdown/snippets/override-find-program-meson.md | |
parent | 0dba7340ecfbe84231a14559ef7f9e7dfb7d1299 (diff) | |
download | meson-7824ff80dcaa457706a4f762e976383e6bd03daf.zip meson-7824ff80dcaa457706a4f762e976383e6bd03daf.tar.gz meson-7824ff80dcaa457706a4f762e976383e6bd03daf.tar.bz2 |
Whoopsie, forgot to create the release notes.
Diffstat (limited to 'docs/markdown/snippets/override-find-program-meson.md')
-rw-r--r-- | docs/markdown/snippets/override-find-program-meson.md | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/docs/markdown/snippets/override-find-program-meson.md b/docs/markdown/snippets/override-find-program-meson.md deleted file mode 100644 index 5d281cd..0000000 --- a/docs/markdown/snippets/override-find-program-meson.md +++ /dev/null @@ -1,38 +0,0 @@ -## New override of `find_program('meson')` - -In some cases, it has been useful for build scripts to access the Meson command -used to invoke the build script. This has led to various ad-hoc solutions that -can be very brittle and project-specific. - -```meson -meson_prog = find_program('meson') -``` - -This call will supply the build script with an external program pointing at the -invoked Meson. - -Because Meson also uses `find_program` for program lookups internally, this -override will also be handled in cases similar to the following: - -```meson -custom_target( - # ... - command: [ - 'meson', - ], - # ... -) - -run_command( - 'meson', - # ... -) - -run_target( - 'tgt', - command: [ - 'meson', - # ... - ] -) -``` |