aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 6474e60..a423ed8 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -1013,7 +1013,7 @@ class Interpreter(InterpreterBase, HoldableObject):
kwargs: kwtypes.DoSubproject) -> SubprojectHolder:
from ..cmake import CMakeInterpreter
with mlog.nested(subp_name):
- prefix = self.coredata.options[OptionKey('prefix')].value
+ prefix = self.coredata.optstore[OptionKey('prefix')].value
from ..modules.cmake import CMakeSubprojectOptions
options = kwargs.get('options') or CMakeSubprojectOptions()
@@ -1052,7 +1052,7 @@ class Interpreter(InterpreterBase, HoldableObject):
key = OptionKey.from_string(optname).evolve(subproject=self.subproject)
if not key.is_project():
- for opts in [self.coredata.options, compilers.base_options]:
+ for opts in [self.coredata.optstore, compilers.base_options]:
v = opts.get(key)
if v is None or v.yielding:
v = opts.get(key.as_root())
@@ -1061,9 +1061,9 @@ class Interpreter(InterpreterBase, HoldableObject):
return v
try:
- opt = self.coredata.options[key]
- if opt.yielding and key.subproject and key.as_root() in self.coredata.options:
- popt = self.coredata.options[key.as_root()]
+ opt = self.coredata.optstore[key]
+ if opt.yielding and key.subproject and key.as_root() in self.coredata.optstore:
+ popt = self.coredata.optstore[key.as_root()]
if type(opt) is type(popt):
opt = popt
else:
@@ -1543,7 +1543,7 @@ class Interpreter(InterpreterBase, HoldableObject):
if self.subproject:
options = {}
for k in comp.get_options():
- v = copy.copy(self.coredata.options[k])
+ v = copy.copy(self.coredata.optstore[k])
k = k.evolve(subproject=self.subproject)
options[k] = v
self.coredata.add_compiler_options(options, lang, for_machine, self.environment, self.subproject)
@@ -3041,13 +3041,13 @@ class Interpreter(InterpreterBase, HoldableObject):
break
def check_clang_asan_lundef(self) -> None:
- if OptionKey('b_lundef') not in self.coredata.options:
+ if OptionKey('b_lundef') not in self.coredata.optstore:
return
- if OptionKey('b_sanitize') not in self.coredata.options:
+ if OptionKey('b_sanitize') not in self.coredata.optstore:
return
- if (self.coredata.options[OptionKey('b_lundef')].value and
- self.coredata.options[OptionKey('b_sanitize')].value != 'none'):
- value = self.coredata.options[OptionKey('b_sanitize')].value
+ if (self.coredata.optstore[OptionKey('b_lundef')].value and
+ self.coredata.optstore[OptionKey('b_sanitize')].value != 'none'):
+ value = self.coredata.optstore[OptionKey('b_sanitize')].value
mlog.warning(textwrap.dedent(f'''\
Trying to use {value} sanitizer on Clang with b_lundef.
This will probably not work.