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/unit | |
parent | 0cd74c96f1b58fe89ef9565ab40905d04538d7ed (diff) | |
download | meson-9e270f030f3016be2a419b698b8062e5ed5373b8.zip meson-9e270f030f3016be2a419b698b8062e5ed5373b8.tar.gz meson-9e270f030f3016be2a419b698b8062e5ed5373b8.tar.bz2 |
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/unit')
-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 67e83d1..8a13b78 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 0000000..ba740d1 --- /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')) |