Skip to content

Commit

Permalink
Make search of library dirs correct
Browse files Browse the repository at this point in the history
  • Loading branch information
makise-homura authored and jpakkane committed Oct 19, 2019
1 parent d5be103 commit dd8c1d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesonbuild/compilers/mixins/elbrus.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def get_library_dirs(self, env: 'Environment', elf_class: typing.Optional[int] =
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]:
Expand Down

0 comments on commit dd8c1d0

Please sign in to comment.