dependencies/llvm: Mark as not found when not found

When either the shard or static libs are not available, and the
dependency is not required mark the dependency as not found and return.

Fixes #4360
pull/4362/head
Dylan Baker 6 years ago committed by Jussi Pakkanen
parent 302df74cc3
commit be07a710ee
  1. 3
      mesonbuild/dependencies/dev.py

@ -310,6 +310,7 @@ class LLVMDependency(ConfigToolDependency):
if not matches:
if self.required:
raise
self.is_found = False
return
self.link_args = self.get_config_value(['--ldflags'], 'link_args')
@ -326,6 +327,8 @@ class LLVMDependency(ConfigToolDependency):
except DependencyException:
if self.required:
raise
self.is_found = False
return
link_args = ['--link-static', '--system-libs'] if self.static else ['--link-shared']
self.link_args = self.get_config_value(

Loading…
Cancel
Save