mirror of https://github.com/rust-lang/rust.git
llvm: Disable pthreads on mingw-w64 platforms
This commit is contained in:
parent
561277d791
commit
52c8c1daba
|
@ -878,6 +878,13 @@ do
|
||||||
# Try to have LLVM pull in as few dependencies as possible (#9397)
|
# Try to have LLVM pull in as few dependencies as possible (#9397)
|
||||||
LLVM_OPTS="$LLVM_OPTS --disable-zlib --disable-libffi"
|
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
|
case "$CFG_C_COMPILER" in
|
||||||
("ccache clang")
|
("ccache clang")
|
||||||
LLVM_CXX_32="ccache clang++ -m32 -Qunused-arguments"
|
LLVM_CXX_32="ccache clang++ -m32 -Qunused-arguments"
|
||||||
|
|
Loading…
Reference in New Issue