From d34a0c5bf0cfba96b6d52cee6d84abfed1de7cc2 Mon Sep 17 00:00:00 2001 From: Olivier Certner Date: Mon, 13 Jan 2025 11:34:47 +0100 Subject: [PATCH] meson.build: Comment on 'threads' dependency required for FreeBSD While here, wrap the long test line. --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 8d1de1d1a..510523357 100644 --- a/meson.build +++ b/meson.build @@ -40,8 +40,10 @@ if not compiler.links(atomics_program, extra_libs += ['-latomic'] 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 +# C++ std::thread is implemented using pthread on Linux by GCC, and on FreeBSD +# for both GCC and LLVM. +if (host_machine.system() == 'linux' and compiler.get_id() == 'gcc') or \ + host_machine.system() == 'freebsd' thread_dep = dependency('threads') else thread_dep = dependency('', required:false)