Skip to content

Commit

Permalink
Merge pull request #1174 from OlCe2/main
Browse files Browse the repository at this point in the history
meson.build: Comment on 'threads' dependency required for FreeBSD
  • Loading branch information
kelson42 authored Jan 15, 2025
2 parents bb65d77 + d34a0c5 commit 664944f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 664944f

Please sign in to comment.