Skip to content

Permit more missing b options. Closes #14254. #14256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Loading