aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-08-03 10:05:38 -0400
committerXavier Claessens <xclaesse@gmail.com>2020-10-16 17:42:24 -0400
commit7902d2032d45f0f44ffad19362e62b301467c918 (patch)
treeb00d24c55c77c92da522458e5a7038fb01dd9b7d /mesonbuild/ast
parentc3b3dc598e8c417e66792444945f7c803d772e62 (diff)
downloadmeson-7902d2032d45f0f44ffad19362e62b301467c918.zip
meson-7902d2032d45f0f44ffad19362e62b301467c918.tar.gz
meson-7902d2032d45f0f44ffad19362e62b301467c918.tar.bz2
Refactor handling of machine file options
It is much easier to not try to parse options into complicated structures until we actually collected all options: machine files, command line, project()'s default_options, environment.
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 334ff83..eca869f 100644
--- a/mesonbuild/ast/introspection.py
+++ b/mesonbuild/ast/introspection.py
@@ -125,7 +125,7 @@ class IntrospectionInterpreter(AstInterpreter):
self.do_subproject(i)
self.coredata.init_backend_options(self.backend)
- options = {k: v for k, v in self.environment.meson_options.host[''].items() if k.startswith('backend_')}
+ options = {k: v for k, v in self.environment.raw_options.items() if k.startswith('backend_')}
self.coredata.set_options(options)
self._add_languages(proj_langs, MachineChoice.HOST)