Skip to content

Commit 8e8abba

Browse files
bonzinijpakkane
authored andcommitted
msetup: keep pending options
New languages and subprojects can appear in subsequent configurations. Subproject options are kept for later now that they are not stored in pending_options, but compiler options for example are not. Drop OptionStore.clear_pending so that they are preserved as well. Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 27d5ae8 commit 8e8abba

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

mesonbuild/msetup.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ def check_unused_options(self, coredata: 'coredata.CoreData', cmd_line_options:
213213
errstr = ', '.join(errlist)
214214
raise MesonException(f'Unknown options: {errstr}')
215215

216-
coredata.optstore.clear_pending()
217-
218216
def _generate(self, env: environment.Environment, capture: bool, vslite_ctx: T.Optional[dict]) -> T.Optional[dict]:
219217
# Get all user defined options, including options that have been defined
220218
# during a previous invocation or using meson configure.

mesonbuild/options.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -819,9 +819,6 @@ def __init__(self, is_cross: bool) -> None:
819819
# Subproject options from toplevel project()
820820
self.pending_subproject_options: OptionDict = {}
821821

822-
def clear_pending(self) -> None:
823-
self.pending_options = {}
824-
825822
def ensure_and_validate_key(self, key: T.Union[OptionKey, str]) -> OptionKey:
826823
if isinstance(key, str):
827824
return OptionKey(key)

0 commit comments

Comments
 (0)