aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2023-01-25 13:32:58 -0500
committerEli Schwartz <eschwartz93@gmail.com>2023-03-27 17:50:48 -0400
commit89fe81835b190a897eaa484d82551b37cf2a6a01 (patch)
tree92fce09daa6af65487dcb7832bd1372857b3db2e /docs/markdown/snippets
parent42c4058304d8278fb96033a0ae9ce744c3632e66 (diff)
downloadmeson-89fe81835b190a897eaa484d82551b37cf2a6a01.zip
meson-89fe81835b190a897eaa484d82551b37cf2a6a01.tar.gz
meson-89fe81835b190a897eaa484d82551b37cf2a6a01.tar.bz2
Allow --reconfigure and --wipe of empty builddir
This allows to run setup command regardless whether the builddir has been configured or not previously. This is useful for example with scripts that always repeat all options. meson setup builddir --reconfigure -Dfoo=bar
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/reconfigure.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/snippets/reconfigure.md b/docs/markdown/snippets/reconfigure.md
new file mode 100644
index 0000000..b4a2dac
--- /dev/null
+++ b/docs/markdown/snippets/reconfigure.md
@@ -0,0 +1,10 @@
+## Allow --reconfigure and --wipe of empty builddir
+
+`meson setup --reconfigure builddir` and `meson setup --wipe builddir` are now
+accepting `builddir/` to be empty or containing a previously failed setup attempt.
+Note that in that case previously passed command line options must be repeated
+as only a successful build saves configured options.
+
+This is useful for example with scripts that always repeat all options,
+`meson setup builddir --wipe -Dfoo=bar` will always work regardless whether
+it is a first invocation or not.