summaryrefslogtreecommitdiff
path: root/mesonbuild/ast
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2024-06-29 12:41:50 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2024-07-11 11:53:39 +0300
commit8e3f609e730645ca37dcb2a4291bd6514ccea2f3 (patch)
tree4d983ae6943164b18b8976bf0917185e030567d4 /mesonbuild/ast
parent1a458aacb407e3893b7e832a7a3f75e581c5e3f4 (diff)
downloadmeson-8e3f609e730645ca37dcb2a4291bd6514ccea2f3.tar.gz
Move project option detection into OptionStore.
Diffstat (limited to 'mesonbuild/ast')
-rw-r--r--mesonbuild/ast/introspection.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py
index 11975109d..07f82dfe6 100644
--- a/mesonbuild/ast/introspection.py
+++ b/mesonbuild/ast/introspection.py
@@ -105,7 +105,7 @@ class IntrospectionInterpreter(AstInterpreter):
if not os.path.exists(optfile):
optfile = os.path.join(self.source_root, self.subdir, 'meson_options.txt')
if os.path.exists(optfile):
- oi = optinterpreter.OptionInterpreter(self.subproject)
+ oi = optinterpreter.OptionInterpreter(self.coredata.optstore, self.subproject)
oi.process(optfile)
assert isinstance(proj_name, str), 'for mypy'
self.coredata.update_project_options(oi.options, T.cast('SubProject', proj_name))