Handle thread flags when not using C at all. Closes #5497.

pull/5519/head
Jussi Pakkanen 6 years ago
parent a35844c08d
commit 9e09c85e6c
  1. 10
      mesonbuild/dependencies/misc.py

@ -388,8 +388,14 @@ class ThreadDependency(ExternalDependency):
super().__init__('threads', environment, None, kwargs) super().__init__('threads', environment, None, kwargs)
self.name = 'threads' self.name = 'threads'
self.is_found = True self.is_found = True
self.compile_args = self.clib_compiler.thread_flags(environment) # Happens if you are using a language with threads
self.link_args = self.clib_compiler.thread_link_flags(environment) # concept without C, such as plain Cuda.
if self.clib_compiler is None:
self.compile_args = []
self.link_args = []
else:
self.compile_args = self.clib_compiler.thread_flags(environment)
self.link_args = self.clib_compiler.thread_link_flags(environment)
class Python3Dependency(ExternalDependency): class Python3Dependency(ExternalDependency):

Loading…
Cancel
Save