aboutsummaryrefslogtreecommitdiff
path: root/test cases/common
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-03-07 00:34:05 +0530
committerXavier Claessens <xclaesse@gmail.com>2020-03-11 07:11:59 -0400
commitc7aa4c8861eb6c1d3534b3b0e94e901b7b2d0206 (patch)
tree3979ef7df1f5addad9da44f143c936a2bc31ba02 /test cases/common
parentbc135f6c4dd56c925438d9c84f3bb6794f7ecaa3 (diff)
downloadmeson-c7aa4c8861eb6c1d3534b3b0e94e901b7b2d0206.zip
meson-c7aa4c8861eb6c1d3534b3b0e94e901b7b2d0206.tar.gz
meson-c7aa4c8861eb6c1d3534b3b0e94e901b7b2d0206.tar.bz2
coredata: Set default options as cmdline args that override each other
The previous code was assuming that options do not depend on each other, and that you can set defaults using `dict.setdefault()`. This is not true for `buildtype` + `optimization`/`debug`, so we add defaults + overrides in the right order and use the options parsing code later to compute the values. Includes a test. Closes https://github.com/mesonbuild/meson/issues/6752
Diffstat (limited to 'test cases/common')
-rw-r--r--test cases/common/1 trivial/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/test cases/common/1 trivial/meson.build b/test cases/common/1 trivial/meson.build
index c476c37..fb1142c 100644
--- a/test cases/common/1 trivial/meson.build
+++ b/test cases/common/1 trivial/meson.build
@@ -1,7 +1,7 @@
# Comment on the first line
project('trivial test',
# Comment inside a function call + array for language list
- ['c'],
+ ['c'], default_options: ['buildtype=debug'],
meson_version : '>=0.52.0')
#this is a comment
sources = 'trivial.c'