From 78e37c495326325ae003683411971779291f8324 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 14 Mar 2018 14:10:46 -0700 Subject: Accept builtin options with -D when making initial meson call Currently meson only accepts `-Dopt=value` for builtin options when calling `meson configure` and `--opt=value` for builtin options when calling `meson` initially. This is a confusing behavior, and users only get a small warning at the top of a potentially long configuration summary to catch this. This has confused end users and developers alike, there are at least 5 duplicates of the bug this fixes, and I have personally been asked about this more times than I can count. The help documentation doesn't make it clear that -D cannot be used to set options like prefix and bindir. This adds support for -D options to the initial meson call, but not -- options to the meson configure call. I think it's better to have one way to do things, and -- options are kinda one off while -D is used everywhere else, so lets stick with that. Related #969 --- docs/markdown/snippets/d-options-for-meson-setup.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/markdown/snippets/d-options-for-meson-setup.md (limited to 'docs') diff --git a/docs/markdown/snippets/d-options-for-meson-setup.md b/docs/markdown/snippets/d-options-for-meson-setup.md new file mode 100644 index 0000000..90dc452 --- /dev/null +++ b/docs/markdown/snippets/d-options-for-meson-setup.md @@ -0,0 +1,6 @@ +## Meson now accepts -D for builtin arguments at setup time like configure time + +Previously meson required that builtin arguments (like prefix) be passed as +`--prefix` to `meson` and `-Dprefix` to `meson configure`. Meson now accepts -D +form like meson configure does. `meson configure` still does not accept the +`--prefix` form. -- cgit v1.1 From 1c48cc08e09b1ea860a4972b752d4f053433fa6f Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 15 Mar 2018 16:19:13 -0700 Subject: mconf: accept -- options like `meson` does I'm not really happy about this to be honest, I don't like having both -- and -D options, I think it's stupid to have two ways to do exactly the same thing, especially since we then have to validate that someone hasn't passed the argument both ways. However, other people want this, so here it is. Fixes #969 --- docs/markdown/snippets/d-options-for-meson-setup.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/markdown/snippets/d-options-for-meson-setup.md b/docs/markdown/snippets/d-options-for-meson-setup.md index 90dc452..37afbe0 100644 --- a/docs/markdown/snippets/d-options-for-meson-setup.md +++ b/docs/markdown/snippets/d-options-for-meson-setup.md @@ -1,6 +1,6 @@ -## Meson now accepts -D for builtin arguments at setup time like configure time +## Meson and meson configure now accept the same arguments Previously meson required that builtin arguments (like prefix) be passed as -`--prefix` to `meson` and `-Dprefix` to `meson configure`. Meson now accepts -D -form like meson configure does. `meson configure` still does not accept the -`--prefix` form. +`--prefix` to `meson` and `-Dprefix` to `meson configure`. `meson` now accepts -D +form like `meson configure` has. `meson configure` also accepts the `--prefix` +form, like `meson` has. -- cgit v1.1