From 04117dc8ee2b6419fd6b88821963d8f38b813c64 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 11 Oct 2018 09:23:06 -0700 Subject: [PATCH] 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 --- mesonbuild/dependencies/dev.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index 1e7c3e8a1..47beb4e3b 100644 --- a/mesonbuild/dependencies/dev.py +++ b/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(