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

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

@ -388,6 +388,12 @@ class ThreadDependency(ExternalDependency):
super().__init__('threads', environment, None, kwargs)
self.name = 'threads'
self.is_found = True
# Happens if you are using a language with threads
# 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)

Loading…
Cancel
Save