diff options
| author | Charles Brunet <charles.brunet@optelgroup.com> | 2024-03-06 07:26:25 -0500 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2024-03-10 13:09:32 -0700 |
| commit | 9e270f030f3016be2a419b698b8062e5ed5373b8 (patch) | |
| tree | 266555b8dcc93fa06e66714572b858ea1848385b /test cases | |
| parent | 0cd74c96f1b58fe89ef9565ab40905d04538d7ed (diff) | |
| download | meson-9e270f030f3016be2a419b698b8062e5ed5373b8.tar.gz | |
Fix detection of unknown base options in subproj
cc4cfbcad92945a1629c80664e1eb755c68905dd added detection for unknown
base options, but it was not working for subproject base options. This
should fix it.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/unit/122 reconfigure base options/meson.build | 2 | ||||
| -rw-r--r-- | test cases/unit/122 reconfigure base options/subprojects/sub/meson.build | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test cases/unit/122 reconfigure base options/meson.build b/test cases/unit/122 reconfigure base options/meson.build index 67e83d1e4..8a13b78b2 100644 --- a/test cases/unit/122 reconfigure base options/meson.build +++ b/test cases/unit/122 reconfigure base options/meson.build @@ -1,5 +1,7 @@ project('reconfigure', 'c', default_options: ['c_std=c89']) +subproject('sub') + message('b_ndebug: ' + get_option('b_ndebug')) message('c_std: ' + get_option('c_std')) diff --git a/test cases/unit/122 reconfigure base options/subprojects/sub/meson.build b/test cases/unit/122 reconfigure base options/subprojects/sub/meson.build new file mode 100644 index 000000000..ba740d1ca --- /dev/null +++ b/test cases/unit/122 reconfigure base options/subprojects/sub/meson.build @@ -0,0 +1,5 @@ +project('sub', 'c', +default_options: ['c_std=c89']) + +message('b_ndebug: ' + get_option('b_ndebug')) +message('c_std: ' + get_option('c_std')) |
