diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-06-06 19:19:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-06 19:19:06 +0300 |
commit | 09a722c4bd6bf3014190ecc4d91eee1110affd99 (patch) | |
tree | d90a1df01feb683efa47cb75b87e26ba3eef11c4 /docs/markdown/snippets | |
parent | 27c5d9f16f535b2aacdf009744d4f99d59b9c81f (diff) | |
parent | 82e36a6bfe3c765e81438492bdff81e248f11c53 (diff) | |
download | meson-09a722c4bd6bf3014190ecc4d91eee1110affd99.zip meson-09a722c4bd6bf3014190ecc4d91eee1110affd99.tar.gz meson-09a722c4bd6bf3014190ecc4d91eee1110affd99.tar.bz2 |
Merge pull request #5263 from Ericson2314/per-machine-cli-args
Per machine 'build_' and '' options
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/per-machine-options.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/snippets/per-machine-options.md b/docs/markdown/snippets/per-machine-options.md new file mode 100644 index 0000000..d19c68e --- /dev/null +++ b/docs/markdown/snippets/per-machine-options.md @@ -0,0 +1,15 @@ +## Specifying options per mer machine + +Previously, no cross builds were controllable from the command line. +Machine-specific options like the pkg-config path and compiler options only +affected native targets, that is to say all targets in native builds, and +`native: true` targets in cross builds. Now, prefix the option with `build.` to +affect build machine targets, and leave it unprefixed to affect host machine +targets. + +For those trying to ensure native and cross builds to the same platform produced +the same result, the old way was frustrating because very different invocations +were needed to affect the same targets, if it was possible at all. Now, the same +command line arguments affect the same targets everwhere --- Meson is closer to +ignoring whether the "overall" build is native or cross, and just caring about +whether individual targets are for the build or host machines. |