From c85c5f488782a1365c5fbc5f9c69c4b722ed0a24 Mon Sep 17 00:00:00 2001 From: Paul Caprioli Date: Wed, 14 May 2025 22:01:11 -0700 Subject: docs: Note that debug=false does not define NDEBUG --- docs/markdown/Builtin-options.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md index faf7a6088..ee07df46a 100644 --- a/docs/markdown/Builtin-options.md +++ b/docs/markdown/Builtin-options.md @@ -150,6 +150,10 @@ the two-way mapping: All other combinations of `debug` and `optimization` set `buildtype` to `'custom'`. +Note that `-Ddebug=false` does not cause the compiler preprocessor macro +`NDEBUG` to be defined. +The macro can be defined using the base option `b_ndebug`, described below. + #### Details for `warning_level` Exact flags per warning level is compiler specific, but there is an approximate -- cgit v1.2.3