From dd8c1d059514dea820c2e952a3c01a50993d4ec3 Mon Sep 17 00:00:00 2001 From: makise-homura Date: Thu, 17 Oct 2019 20:13:41 +0300 Subject: [PATCH] Make search of library dirs correct --- mesonbuild/compilers/mixins/elbrus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/compilers/mixins/elbrus.py b/mesonbuild/compilers/mixins/elbrus.py index 599d92aa7..03f65560e 100644 --- a/mesonbuild/compilers/mixins/elbrus.py +++ b/mesonbuild/compilers/mixins/elbrus.py @@ -42,9 +42,9 @@ class ElbrusCompiler(GnuCompiler): stdo = Popen_safe(self.exelist + ['--print-search-dirs'], env=os_env)[1] for line in stdo.split('\n'): if line.startswith('libraries:'): - # lcc does not include '=' in --print-search-dirs output. + # lcc does not include '=' in --print-search-dirs output. Also it could show nonexistent dirs. libstr = line.split(' ', 1)[1] - return [os.path.realpath(p) for p in libstr.split(':')] + return [os.path.realpath(p) for p in libstr.split(':') if os.path.exists(p)] return [] def get_program_dirs(self, env: 'Environment') -> typing.List[str]: