diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-10-05 11:23:58 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-10-25 10:03:34 -0700 |
commit | 7841210b4f42c6bada74bc1bc48a355d6631b679 (patch) | |
tree | faab2d120c93a67b7ac449afe20a83b23b5e7224 | |
parent | ab83cde966491336469c1e7e924eddc3d8aa2b81 (diff) | |
download | meson-7841210b4f42c6bada74bc1bc48a355d6631b679.zip meson-7841210b4f42c6bada74bc1bc48a355d6631b679.tar.gz meson-7841210b4f42c6bada74bc1bc48a355d6631b679.tar.bz2 |
llvm: Add helper function for checking modules
This will be used in a later patch.
-rw-r--r-- | mesonbuild/dependencies/dev.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index 308ae55..b087740 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -186,6 +186,10 @@ class LLVMDependency(ExternalDependency): self.modules = shlex.split(out) 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)): if mod not in self.modules: mlog.log('LLVM module', mod, 'found:', mlog.red('NO')) |