aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorHemmo Nieminen <hemmo.nieminen@iki.fi>2017-12-17 21:06:06 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-12-17 21:06:06 +0200
commitd232a80e90a9bd4e7c677c695a9c230ac1ec8361 (patch)
treef0ea383bc6cce320e7e68d3d1817bae1e5ca03d1 /docs
parent202b2fedf300f62b8c1c3b52cd5320845038d85e (diff)
downloadmeson-d232a80e90a9bd4e7c677c695a9c230ac1ec8361.zip
meson-d232a80e90a9bd4e7c677c695a9c230ac1ec8361.tar.gz
meson-d232a80e90a9bd4e7c677c695a9c230ac1ec8361.tar.bz2
Allow value 'if-release' for b_ndebug project option. (#1896)
When set, NDEBUG will be automatically defined for for release builds but not for other build types.
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/if-release.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/if-release.md b/docs/markdown/snippets/if-release.md
new file mode 100644
index 0000000..96e12ef
--- /dev/null
+++ b/docs/markdown/snippets/if-release.md
@@ -0,0 +1,7 @@
+## b_ndebug : if-release
+
+The value `if-release` can be given for the `b_ndebug` project option.
+
+This will make the `NDEBUG` pre-compiler macro to be defined for release
+type builds as if the `b_ndebug` project option had had the value `true`
+defined for it.