mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-09 07:08:38 -04:00
meson.build: Comment on 'threads' dependency required for FreeBSD
While here, wrap the long test line.
This commit is contained in:
parent
bb65d77229
commit
d34a0c5bf0
@ -40,8 +40,10 @@ if not compiler.links(atomics_program,
|
|||||||
extra_libs += ['-latomic']
|
extra_libs += ['-latomic']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if (compiler.get_id() == 'gcc' and build_machine.system() == 'linux') or host_machine.system() == 'freebsd'
|
# C++ std::thread is implemented using pthread on Linux by GCC, and on FreeBSD
|
||||||
# C++ std::thread is implemented using pthread on linux by gcc
|
# for both GCC and LLVM.
|
||||||
|
if (host_machine.system() == 'linux' and compiler.get_id() == 'gcc') or \
|
||||||
|
host_machine.system() == 'freebsd'
|
||||||
thread_dep = dependency('threads')
|
thread_dep = dependency('threads')
|
||||||
else
|
else
|
||||||
thread_dep = dependency('', required:false)
|
thread_dep = dependency('', required:false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user