Skip to content

Commit

Permalink
depenencies/llvm: Handle llvm-config --shared-mode failing
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker committed Jun 24, 2020
1 parent 83df219 commit ccba554
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mesonbuild/dependencies/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,13 @@ def __check_libfiles(self, shared):

def _set_new_link_args(self, environment):
"""How to set linker args for LLVM versions >= 3.9"""
mode = self.get_config_value(['--shared-mode'], 'link_args')[0]
try:
mode = self.get_config_value(['--shared-mode'], 'link_args')[0]
except IndexError:
mlog.debug('llvm-config --shared-mode returned an error')
self.is_found = False
return

if not self.static and mode == 'static':
# If llvm is configured with LLVM_BUILD_LLVM_DYLIB but not with
# LLVM_LINK_LLVM_DYLIB and not LLVM_BUILD_SHARED_LIBS (which
Expand Down

0 comments on commit ccba554

Please sign in to comment.