summaryrefslogtreecommitdiff
path: root/mesonbuild/options.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-07-05 17:23:00 +0200
committerJussi Pakkanen <jussi.pakkanen@mailbox.org>2025-07-07 20:32:11 +0300
commit8e8abba8f59a9bc4f0d4cb35ceddee5b4a8f04cb (patch)
tree0e0b5ca5a8a0b65b0cb732d301b98b92439c9e88 /mesonbuild/options.py
parent27d5ae8a5f6a31d4a330f08e47839955f7111287 (diff)
downloadmeson-8e8abba8f59a9bc4f0d4cb35ceddee5b4a8f04cb.tar.gz
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 <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/options.py')
-rw-r--r--mesonbuild/options.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/mesonbuild/options.py b/mesonbuild/options.py
index 38bfdf034..b9b00eff5 100644
--- a/mesonbuild/options.py
+++ b/mesonbuild/options.py
@@ -819,9 +819,6 @@ class OptionStore:
# Subproject options from toplevel project()
self.pending_subproject_options: OptionDict = {}
- def clear_pending(self) -> None:
- self.pending_options = {}
-
def ensure_and_validate_key(self, key: T.Union[OptionKey, str]) -> OptionKey:
if isinstance(key, str):
return OptionKey(key)