src/thread/meson.build: detect pthread_setname_np()
This compile-time check got lost during the Meson transition.
This commit is contained in:
parent
303b3071e4
commit
2e450bbf95
|
@ -1,10 +1,14 @@
|
|||
threads_dep = dependency('threads')
|
||||
|
||||
conf.set('HAVE_PTHREAD_SETNAME_NP', compiler.has_function('pthread_setname_np', dependencies: threads_dep))
|
||||
|
||||
thread = static_library(
|
||||
'thread',
|
||||
'Util.cxx',
|
||||
'Thread.cxx',
|
||||
include_directories: inc,
|
||||
dependencies: [
|
||||
dependency('threads')
|
||||
threads_dep,
|
||||
],
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue