llvm: Add helper function for checking modules

This will be used in a later patch.
pull/2444/head
Dylan Baker 7 years ago
parent ab83cde966
commit 7841210b4f
  1. 4
      mesonbuild/dependencies/dev.py

@ -186,6 +186,10 @@ class LLVMDependency(ExternalDependency):
self.modules = shlex.split(out) self.modules = shlex.split(out)
modules = stringlistify(extract_as_list(kwargs, 'modules')) modules = stringlistify(extract_as_list(kwargs, 'modules'))
self.check_components(modules)
def check_components(self, modules):
"""Check for llvm components (modules in meson terms). """
for mod in sorted(set(modules)): for mod in sorted(set(modules)):
if mod not in self.modules: if mod not in self.modules:
mlog.log('LLVM module', mod, 'found:', mlog.red('NO')) mlog.log('LLVM module', mod, 'found:', mlog.red('NO'))

Loading…
Cancel
Save