summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2025-02-15 12:59:10 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2025-02-15 16:16:15 +0200
commit7f8bef1ad7199fb05e58cc6d7a49b64a3c24c757 (patch)
tree57c6e56cb708a059345544005820cb3dd5e2e567
parentd37d649b08b832d52fa684bc0506829fb40d5261 (diff)
downloadmeson-7f8bef1ad7199fb05e58cc6d7a49b64a3c24c757.tar.gz
Permit more missing b options. Closes #14254.
-rw-r--r--mesonbuild/msetup.py2
-rw-r--r--unittests/allplatformstests.py5
2 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/msetup.py b/mesonbuild/msetup.py
index e2646f9e1..ac0ea7f06 100644
--- a/mesonbuild/msetup.py
+++ b/mesonbuild/msetup.py
@@ -191,7 +191,7 @@ class MesonApp:
def check_unused_options(self, coredata: 'coredata.CoreData', cmd_line_options: T.Any, all_subprojects: T.Any) -> None:
pending = coredata.optstore.pending_project_options
errlist: T.List[str] = []
- permitted_unknowns = ['b_vscrt', 'b_lto', 'b_lundef']
+ permitted_unknowns = ['b_vscrt', 'b_lto', 'b_lundef', 'b_ndebug']
permitlist: T.List[str] = []
for opt in pending:
# Due to backwards compatibility setting build options in non-cross
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py
index 4c878e38a..865b5e34e 100644
--- a/unittests/allplatformstests.py
+++ b/unittests/allplatformstests.py
@@ -5138,3 +5138,8 @@ class AllPlatformTests(BasePlatformTests):
'link', 'lld-link', 'mwldarm', 'mwldeppc', 'optlink', 'xilink',
}
self.assertEqual(cc.linker.get_accepts_rsp(), has_rsp)
+
+ def test_nonexisting_bargs(self):
+ testdir = os.path.join(self.unit_test_dir, '117 empty project')
+ args = ['-Db_ndebug=if_release']
+ self.init(testdir, extra_args=args)