From 25de6dd67568d1c02ad0ad5358cd3719c428b88b Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Fri, 12 Apr 2019 15:25:08 +0200 Subject: [PATCH] cmake: Fixed new thread dependency --- mesonbuild/dependencies/dev.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mesonbuild/dependencies/dev.py b/mesonbuild/dependencies/dev.py index 646293b91..4d541a348 100644 --- a/mesonbuild/dependencies/dev.py +++ b/mesonbuild/dependencies/dev.py @@ -412,6 +412,7 @@ class LLVMDependencyCMake(CMakeDependency): defs = self.get_cmake_var('PACKAGE_DEFINITIONS') temp = ['-I' + x for x in inc_dirs] + defs self.compile_args += [x for x in temp if x not in self.compile_args] + self._add_sub_dependency(ThreadDependency, env, kwargs) def _main_cmake_file(self) -> str: # Use a custom CMakeLists.txt for LLVM @@ -440,9 +441,6 @@ class LLVMDependencyCMake(CMakeDependency): return orig_name[0] return module - def need_threads(self) -> bool: - return True - class LLVMDependency(ExternalDependency): def __init__(self, env, kwargs): super().__init__('LLVM', env, 'cpp', kwargs)