diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-04-22 14:59:04 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-26 17:05:44 +0100 |
commit | d4e867809b5b16a4eda0751c7d0148b13b0e35d9 (patch) | |
tree | d4ad529bec3fc79c57090420aeaa9ae5f10e512c /test cases | |
parent | 3af39a463b6d6314136bc944022a99c22bd31b04 (diff) | |
download | meson-d4e867809b5b16a4eda0751c7d0148b13b0e35d9.zip meson-d4e867809b5b16a4eda0751c7d0148b13b0e35d9.tar.gz meson-d4e867809b5b16a4eda0751c7d0148b13b0e35d9.tar.bz2 |
store the list of initializes subprojects in the coredata structure
We need to konw on rconfigure which options have already bee set not
just for the super project, but also for the subproject. However, using
first_invocation is not sufficient, as a reconfigure could add a new
subpproject that wasn't present before, and we need to initialize that
project's builtins.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/unit/48 reconfigure/meson.build | 2 | ||||
-rw-r--r-- | test cases/unit/48 reconfigure/subprojects/sub1/meson.build | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test cases/unit/48 reconfigure/meson.build b/test cases/unit/48 reconfigure/meson.build index 6eaac5d..4f35458 100644 --- a/test cases/unit/48 reconfigure/meson.build +++ b/test cases/unit/48 reconfigure/meson.build @@ -7,3 +7,5 @@ message('opt4 ' + get_option('opt4')) exe = executable('test1', 'main.c') test('test1', exe) + +sub1 = subproject('sub1') diff --git a/test cases/unit/48 reconfigure/subprojects/sub1/meson.build b/test cases/unit/48 reconfigure/subprojects/sub1/meson.build new file mode 100644 index 0000000..4f3d2fc --- /dev/null +++ b/test cases/unit/48 reconfigure/subprojects/sub1/meson.build @@ -0,0 +1,3 @@ +project('sub1') + +message('sub1:werror', get_option('werror')) |