cmake: Fixed new thread dependency

pull/5185/head
Daniel Mensinger 6 years ago
parent 1fba945b61
commit 25de6dd675
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 4
      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)

Loading…
Cancel
Save