Skip to content

Commit

Permalink
Permit more missing b options. Closes #14254.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Feb 15, 2025
1 parent d37d649 commit 7f8bef1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/msetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def generate(self, capture: bool = False, vslite_ctx: T.Optional[dict] = None) -
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
Expand Down
5 changes: 5 additions & 0 deletions unittests/allplatformstests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5138,3 +5138,8 @@ def test_rsp_support(self):
'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)

0 comments on commit 7f8bef1

Please sign in to comment.