about summary refs log tree commit diff
diff options
context:
space:
mode:
authorklutzy <klutzytheklutzy@gmail.com>2013-11-24 14:21:35 +0900
committerklutzy <klutzytheklutzy@gmail.com>2013-11-24 19:15:08 +0900
commit52c8c1dabad9280944867264b9e19ec4f0ea9a47 (patch)
tree9571eb1f87d8b123d3a9689fe472f070b96dd598
parent561277d79199f9f6379262f169f12ca34651f262 (diff)
downloadrust-52c8c1dabad9280944867264b9e19ec4f0ea9a47.tar.gz
rust-52c8c1dabad9280944867264b9e19ec4f0ea9a47.zip
llvm: Disable pthreads on mingw-w64 platforms
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index f81072ad691..2390016b3f1 100755
--- a/configure
+++ b/configure
@@ -878,6 +878,13 @@ do
         # Try to have LLVM pull in as few dependencies as possible (#9397)
         LLVM_OPTS="$LLVM_OPTS --disable-zlib --disable-libffi"
 
+        # pthreads works badly on mingw-w64 systems: #8996
+        case "$CFG_BUILD" in
+            (*w64-mingw32)
+            LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
+            ;;
+        esac
+
         case "$CFG_C_COMPILER" in
             ("ccache clang")
             LLVM_CXX_32="ccache clang++ -m32 -Qunused-arguments"