dub: fix detecting packages with different compilers and archs

Fix 'not founded' message for packages with another name for
specific configurations instead of just 'library'.

Signed-off-by: Luís Ferreira <lsferreira169@gmail.com>
pull/4896/head
Luís Ferreira 6 years ago committed by Nirbheek Chauhan
parent 70e6f4198c
commit 8a4a75cc59
  1. 4
      mesonbuild/dependencies/base.py

@ -1674,9 +1674,9 @@ class DubDependency(ExternalDependency):
return ''
# Ex.: library-debug-linux.posix-x86_64-ldc_2081-EF934983A3319F8F8FF2F0E107A363BA
build_name = 'library-{}-{}-{}-{}_{}'.format(description['buildType'], '.'.join(description['platform']), '.'.join(description['architecture']), comp, d_ver)
build_name = '-{}-{}-{}-{}_{}'.format(description['buildType'], '.'.join(description['platform']), '.'.join(description['architecture']), comp, d_ver)
for entry in os.listdir(module_build_path):
if entry.startswith(build_name):
if build_name in entry:
for file in os.listdir(os.path.join(module_build_path, entry)):
if file == lib_file_name:
if folder_only:

Loading…
Cancel
Save