use new optionkey.is_* methods
This commit is contained in:
parent
30ec7612c8
commit
615686fd6d
|
@ -125,7 +125,7 @@ class IntrospectionInterpreter(AstInterpreter):
|
||||||
self.do_subproject(i)
|
self.do_subproject(i)
|
||||||
|
|
||||||
self.coredata.init_backend_options(self.backend)
|
self.coredata.init_backend_options(self.backend)
|
||||||
options = {k: v for k, v in self.environment.options.items() if k.name.startswith('backend_')}
|
options = {k: v for k, v in self.environment.options.items() if k.is_backend()}
|
||||||
|
|
||||||
self.coredata.set_options(options)
|
self.coredata.set_options(options)
|
||||||
self._add_languages(proj_langs, MachineChoice.HOST)
|
self._add_languages(proj_langs, MachineChoice.HOST)
|
||||||
|
|
|
@ -89,7 +89,7 @@ class OptionKey:
|
||||||
internally easier to reason about and produce.
|
internally easier to reason about and produce.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__slots__ = ['name', 'subproject', 'machine', 'lang', '_hash', '_type']
|
__slots__ = ['name', 'subproject', 'machine', 'lang', '_hash', 'type']
|
||||||
|
|
||||||
name: str
|
name: str
|
||||||
subproject: str
|
subproject: str
|
||||||
|
|
|
@ -3142,7 +3142,7 @@ external dependencies (including libraries) must go to "dependencies".''')
|
||||||
if self.environment.first_invocation:
|
if self.environment.first_invocation:
|
||||||
self.coredata.init_backend_options(backend)
|
self.coredata.init_backend_options(backend)
|
||||||
|
|
||||||
options = {k: v for k, v in self.environment.options.items() if k.name.startswith('backend_')}
|
options = {k: v for k, v in self.environment.options.items() if k.is_backend()}
|
||||||
self.coredata.set_options(options)
|
self.coredata.set_options(options)
|
||||||
|
|
||||||
@stringArgs
|
@stringArgs
|
||||||
|
|
Loading…
Reference in New Issue