Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 366e855

Browse files
bgilbertnwellnhof
authored andcommitted
meson: don't link with pthreads on Windows
dependency('threads') always produces '-pthread' on GNU-like linkers, even on Windows where we use Win32 thread primitives instead.
1 parent f2affce commit 366e855

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ if want_modules and host_machine.system() != 'windows'
335335
endif
336336

337337
### threads
338-
if want_threads
338+
if want_threads and host_os != 'windows'
339339
threads_dep = dependency('threads')
340340
xml_deps += threads_dep
341341
else

0 commit comments

Comments
 (0)