summaryrefslogtreecommitdiff
path: root/mesonbuild/options.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-05-19 11:12:21 +0200
committerEli Schwartz <eschwartz93@gmail.com>2025-05-21 21:41:40 -0400
commit1ac86c1df8dd3321f81fa5c4eb861c6e86d891ab (patch)
treecfafad5f77f8b6696e2e20021312c7293244a104 /mesonbuild/options.py
parent8dcc9d3423762f9cf996af87b8a2c71c7111aa32 (diff)
downloadmeson-1ac86c1df8dd3321f81fa5c4eb861c6e86d891ab.tar.gz
options: accept build options in --reconfigure or "meson configure"
Make more of the first-invocation logic apply to subsequent configuration of the build tree. This also opens the door for using set_option_maybe_root for the first invocation. This is a huge cleanup but also a larger change, and therefore not something for stable branches. Leave it for later. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/options.py')
-rw-r--r--mesonbuild/options.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/options.py b/mesonbuild/options.py
index 2689d6410..ac90b2292 100644
--- a/mesonbuild/options.py
+++ b/mesonbuild/options.py
@@ -1057,6 +1057,9 @@ class OptionStore:
return changed
def set_option_maybe_root(self, o: OptionKey, new_value: str) -> bool:
+ if not self.is_cross and o.is_for_build():
+ return False
+
if o in self.options:
return self.set_option(o, new_value)
if self.accept_as_pending_option(o):