aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2017-10-05 11:23:58 -0700
committerDylan Baker <dylan@pnwbakers.com>2017-10-25 10:03:34 -0700
commit7841210b4f42c6bada74bc1bc48a355d6631b679 (patch)
treefaab2d120c93a67b7ac449afe20a83b23b5e7224
parentab83cde966491336469c1e7e924eddc3d8aa2b81 (diff)
downloadmeson-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.py4
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'))