aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-03-07 01:49:30 +0530
committerXavier Claessens <xclaesse@gmail.com>2020-03-11 07:11:59 -0400
commit69e9d32bca23d75a9a5d7df794d34c9aeb949d8a (patch)
treee69287358bd3dc77a4214c46176a83046908bbd3 /docs
parentbd953b6b2977eb9d9afb92208f117dd8845a3088 (diff)
downloadmeson-69e9d32bca23d75a9a5d7df794d34c9aeb949d8a.zip
meson-69e9d32bca23d75a9a5d7df794d34c9aeb949d8a.tar.gz
meson-69e9d32bca23d75a9a5d7df794d34c9aeb949d8a.tar.bz2
coredata: Warn on usage of both -Dbuildtype and -Doptimization/-Ddebug
It may not be obvious to users that these two ways to set build-types override each other and specifying both is redundant, and conflicts are resolved based on whichever is specified later. Closes https://github.com/mesonbuild/meson/issues/6742
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Builtin-options.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/markdown/Builtin-options.md b/docs/markdown/Builtin-options.md
index c2b10b6..ea5ad70 100644
--- a/docs/markdown/Builtin-options.md
+++ b/docs/markdown/Builtin-options.md
@@ -87,6 +87,7 @@ Using the option as-is with no prefix affects all machines. For example:
| werror | false | Treat warnings as errors | no |
| wrap_mode {default, nofallback,<br>nodownload, forcefallback} | default | Wrap mode to use | no |
+<a name="build-type-options"></a>
For setting optimization levels and toggling debug, you can either set the
`buildtype` option, or you can set the `optimization` and `debug` options which
give finer control over the same. Whichever you decide to use, the other will