meson.build: Don't try to link pthreads on Windows

This commit is contained in:
Matt Borgerson 2024-12-28 14:57:30 -07:00 committed by mborgerson
parent 454668e5b2
commit cff4504c73
1 changed files with 7 additions and 1 deletions

View File

@ -388,7 +388,13 @@ have_vhost_net = have_vhost_net_kernel or have_vhost_net_user or have_vhost_net_
# Target-specific libraries and flags
libm = cc.find_library('m', required: false)
threads = dependency('threads')
if targetos == 'windows'
threads = dependency('', required: false)
else
threads = dependency('threads')
endif
util = cc.find_library('util', required: false)
winmm = []
socket = []