Handle thread flags when not using C at all. Closes #5497.
This commit is contained in:
parent
a35844c08d
commit
9e09c85e6c
|
@ -388,8 +388,14 @@ class ThreadDependency(ExternalDependency):
|
|||
super().__init__('threads', environment, None, kwargs)
|
||||
self.name = 'threads'
|
||||
self.is_found = True
|
||||
self.compile_args = self.clib_compiler.thread_flags(environment)
|
||||
self.link_args = self.clib_compiler.thread_link_flags(environment)
|
||||
# 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)
|
||||
|
||||
|
||||
class Python3Dependency(ExternalDependency):
|
||||
|
|
Loading…
Reference in New Issue