Skip to content

Commit 52c8c1d

Browse files
committed
llvm: Disable pthreads on mingw-w64 platforms
1 parent 561277d commit 52c8c1d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configure

+7
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,13 @@ do
878878
# Try to have LLVM pull in as few dependencies as possible (#9397)
879879
LLVM_OPTS="$LLVM_OPTS --disable-zlib --disable-libffi"
880880

881+
# pthreads works badly on mingw-w64 systems: #8996
882+
case "$CFG_BUILD" in
883+
(*w64-mingw32)
884+
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
885+
;;
886+
esac
887+
881888
case "$CFG_C_COMPILER" in
882889
("ccache clang")
883890
LLVM_CXX_32="ccache clang++ -m32 -Qunused-arguments"

0 commit comments

Comments
 (0)