From 73cbf4113a87aec2821982e9e5613185c63ab78b Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Wed, 5 Sep 2018 00:39:33 +0200 Subject: [PATCH] llvm: fix build flags with older llvm versions Fix fallback code for older (<= 3.8) llvm versions to not be dependent on readdir() order. Fixes #4102 --- mesonbuild/dependencies/dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index f90422e80..bcaf2e8c0 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -288,7 +288,7 @@ class LLVMDependency(ConfigToolDependency): libdir = self.get_config_value(['--libdir'], 'link_args')[0] expected_name = 'libLLVM-{}'.format(self.version) - re_name = re.compile(r'{}.(so|dll|dylib)'.format(expected_name)) + re_name = re.compile(r'{}.(so|dll|dylib)$'.format(expected_name)) for file_ in os.listdir(libdir): if re_name.match(file_):