diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-08-19 19:47:51 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-09-04 22:47:12 +0300 |
commit | 72a6683c6f564afa8f8d7e96b0238961aa867f00 (patch) | |
tree | b6c7828fcaaf52472626bb55efb1cad4ba7bad40 /docs/markdown/snippets | |
parent | e94a9c8fcfa4776e09c9cabfe01de705ce34b735 (diff) | |
download | meson-72a6683c6f564afa8f8d7e96b0238961aa867f00.zip meson-72a6683c6f564afa8f8d7e96b0238961aa867f00.tar.gz meson-72a6683c6f564afa8f8d7e96b0238961aa867f00.tar.bz2 |
Permit overriding find_program from the cross file.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/cross_find.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/snippets/cross_find.md b/docs/markdown/snippets/cross_find.md new file mode 100644 index 0000000..b16d64d --- /dev/null +++ b/docs/markdown/snippets/cross_find.md @@ -0,0 +1,15 @@ +# Can override executables in the cross file + +The cross file can now be used for overriding the result of +`find_program`. As an example if you want to find the `objdump` +command and have the following definition in your cross file: + + [binaries] + ... + objdump = '/usr/bin/arm-linux-gnueabihf-objdump-6' + +Then issuing the command `find_program('objdump')` will return the +version specified in the cross file. If you need the build machine's +objdump, you can specify the `native` keyword like this: + + native_objdump = find_program('objdump', native : true) |