summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-03-08 11:17:58 -0800
committerDylan Baker <dylan@pnwbakers.com>2024-03-18 16:06:37 -0700
commit2d7b7c3aaf23d08d51f375fa1eea80e0ffffed87 (patch)
treeb726492b80c80cfc234c21daceee700d1acabb77 /docs
parentc6875305f327a6be506d6544516f35e792f6d625 (diff)
downloadmeson-2d7b7c3aaf23d08d51f375fa1eea80e0ffffed87.tar.gz
mconf: Reload the options files if they have changed
This fixes issues where a new option is added, an option is removed, the constraints of an option are changed, an option file is added where one didn't previously exist, an option file is deleted, or it is renamed between meson_options.txt and meson.options There is one case that is known to not work, but it's probably a less common case, which is setting options for an unconfigured subproject. We could probably make that work in some cases, but I don't think it makes sense to download a wrap during meson configure.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/meson_configure_options_changes.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/snippets/meson_configure_options_changes.md b/docs/markdown/snippets/meson_configure_options_changes.md
new file mode 100644
index 000000000..c86792ceb
--- /dev/null
+++ b/docs/markdown/snippets/meson_configure_options_changes.md
@@ -0,0 +1,12 @@
+## Meson configure handles changes to options in more cases
+
+Meson configure now correctly handles updates to the options file without a full
+reconfigure. This allows making a change to the `meson.options` or
+`meson_options.txt` file without a reconfigure.
+
+For example, this now works:
+```sh
+meson setup builddir
+git pull
+meson configure builddir -Doption-added-by-pull=value
+```