diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-19 11:08:07 +0200 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-05-21 21:41:40 -0400 |
| commit | 8dcc9d3423762f9cf996af87b8a2c71c7111aa32 (patch) | |
| tree | 31ed363961cf505566dbd5533a80f0c639d2b612 /unittests | |
| parent | cc382b237ac88b14210e0292940394385cab31f6 (diff) | |
| download | meson-8dcc9d3423762f9cf996af87b8a2c71c7111aa32.tar.gz | |
options: accept compiler and built-in options in --reconfigure and "meson configure"
Follow the same logic that is used at the end of the first invocation.
This fixes
meson setup --reconfigure -Db_ndebug=true
on a project that has no language that defines b_ndebug.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'unittests')
| -rw-r--r-- | unittests/optiontests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittests/optiontests.py b/unittests/optiontests.py index 416da8f47..0bdd7dc45 100644 --- a/unittests/optiontests.py +++ b/unittests/optiontests.py @@ -208,6 +208,10 @@ class OptionTests(unittest.TestCase): assert optstore.accept_as_pending_option(OptionKey('b_ndebug')) assert not optstore.accept_as_pending_option(OptionKey('b_whatever')) + def test_reconfigure_b_nonexistent(self): + optstore = OptionStore(False) + optstore.set_from_configure_command(['b_ndebug=true'], []) + def test_subproject_nonexistent(self): optstore = OptionStore(False) subprojects = {'found'} |
