summaryrefslogtreecommitdiff
path: root/mesonbuild/modules
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-08-04 19:26:42 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-10-06 14:44:31 -0700
commitc6814b7cd54907128a4fb65159ed054b683157db (patch)
tree13aeaa8ca7ce57bcf60c241bdfc4f2774c27d8bc /mesonbuild/modules
parent23828ced6810955e108aadd4ceb5fbf9c5965421 (diff)
downloadmeson-c6814b7cd54907128a4fb65159ed054b683157db.tar.gz
options: replace get_value with get_value_for
The two methods are identical. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r--mesonbuild/modules/gnome.py2
-rw-r--r--mesonbuild/modules/python.py2
-rw-r--r--mesonbuild/modules/rust.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 70b1165a2..6a7685390 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -922,7 +922,7 @@ class GnomeModule(ExtensionModule):
if state.project_args.get(lang):
cflags += state.project_args[lang]
if OptionKey('b_sanitize') in compiler.base_options:
- sanitize = state.environment.coredata.optstore.get_value('b_sanitize')
+ sanitize = state.environment.coredata.optstore.get_value_for('b_sanitize')
assert isinstance(sanitize, list)
cflags += compiler.sanitizer_compile_args(sanitize)
# These must be first in ldflags
diff --git a/mesonbuild/modules/python.py b/mesonbuild/modules/python.py
index a266f3a3b..6f5a63a0b 100644
--- a/mesonbuild/modules/python.py
+++ b/mesonbuild/modules/python.py
@@ -206,7 +206,7 @@ class PythonInstallation(_ExternalProgramHolder['PythonExternalProgram']):
new_link_args = mesonlib.extract_as_list(kwargs, 'link_args')
- is_debug = self.interpreter.environment.coredata.optstore.get_value('debug')
+ is_debug = self.interpreter.environment.coredata.optstore.get_value_for('debug')
if is_debug:
new_link_args.append(python_windows_debug_link_exception)
else:
diff --git a/mesonbuild/modules/rust.py b/mesonbuild/modules/rust.py
index d0e809181..59702d756 100644
--- a/mesonbuild/modules/rust.py
+++ b/mesonbuild/modules/rust.py
@@ -443,7 +443,7 @@ class RustModule(ExtensionModule):
if self._bindgen_rust_target and '--rust-target' not in cmd:
cmd.extend(['--rust-target', self._bindgen_rust_target])
if self._bindgen_set_std and '--rust-edition' not in cmd:
- rust_std = state.environment.coredata.optstore.get_value('rust_std')
+ rust_std = state.environment.coredata.optstore.get_value_for('rust_std')
assert isinstance(rust_std, str), 'for mypy'
if rust_std != 'none':
cmd.extend(['--rust-edition', rust_std])