From 8133a7b9a4b8f0686fbc479aa2d64e41c85a979b Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 12 Jan 2021 21:51:19 +0200 Subject: Keep buildtype the same even if user changes debug and/or optimization. --- docs/markdown/snippets/buildtyperemains.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/markdown/snippets/buildtyperemains.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/buildtyperemains.md b/docs/markdown/snippets/buildtyperemains.md new file mode 100644 index 0000000..4eb6243 --- /dev/null +++ b/docs/markdown/snippets/buildtyperemains.md @@ -0,0 +1,10 @@ +## Buildtype remains even if dependent options are changed + +Setting the `buildtype' option to a value sets the `debug` and +`optimization` options to predefined values. Traditionally setting the +options to other values would then change the buildtype to `custom`. +This is confusing and means that you can't use, for example, debug +level `g` in `debug` buildtype even though it would make sense under +many circumstances. Starting with the buildtype is only changed when +the user explicitly sets it. Setting the build type sets the other +options to their default values as before. \ No newline at end of file -- cgit v1.1