Skip to content

Commit e68998a

Browse files
Windows does not have pthread, only link to it on posix OSes
1 parent 413c313 commit e68998a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get_extensions():
9595
sources=['mkl/_mklinitmodule.c'],
9696
define_macros=defs,
9797
include_dirs=mkl_include_dirs,
98-
libraries=mkl_libraries + ["pthread"],
98+
libraries=mkl_libraries + (["pthread"] if os.name == "posix" else []),
9999
library_dirs=mkl_library_dirs,
100100
extra_compile_args=[
101101
'-DNDEBUG'

0 commit comments

Comments
 (0)