Skip to content

Commit 7f8bef1

Browse files
committed
Permit more missing b options. Closes #14254.
1 parent d37d649 commit 7f8bef1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

mesonbuild/msetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def generate(self, capture: bool = False, vslite_ctx: T.Optional[dict] = None) -
191191
def check_unused_options(self, coredata: 'coredata.CoreData', cmd_line_options: T.Any, all_subprojects: T.Any) -> None:
192192
pending = coredata.optstore.pending_project_options
193193
errlist: T.List[str] = []
194-
permitted_unknowns = ['b_vscrt', 'b_lto', 'b_lundef']
194+
permitted_unknowns = ['b_vscrt', 'b_lto', 'b_lundef', 'b_ndebug']
195195
permitlist: T.List[str] = []
196196
for opt in pending:
197197
# Due to backwards compatibility setting build options in non-cross

unittests/allplatformstests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5138,3 +5138,8 @@ def test_rsp_support(self):
51385138
'link', 'lld-link', 'mwldarm', 'mwldeppc', 'optlink', 'xilink',
51395139
}
51405140
self.assertEqual(cc.linker.get_accepts_rsp(), has_rsp)
5141+
5142+
def test_nonexisting_bargs(self):
5143+
testdir = os.path.join(self.unit_test_dir, '117 empty project')
5144+
args = ['-Db_ndebug=if_release']
5145+
self.init(testdir, extra_args=args)

0 commit comments

Comments
 (0)