From 9f96bf5ebe07eeb7bf86ef2d68cdb5e5b77a3777 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 5 Apr 2019 08:38:37 -0700 Subject: [PATCH] Disable threads in libcxx and libcxxabi for now. WASI libc doesn't currently support threads, so disable threading support in libcxx and libcxxabi. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d2b92ff..101c05e 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,7 @@ build/libcxx.BUILT: build/llvm.BUILT build/compiler-rt.BUILT build/wasi-sysroot. -DCMAKE_TOOLCHAIN_FILE=$(ROOT_DIR)/wasi-sdk.cmake \ -DLLVM_CONFIG_PATH=$(ROOT_DIR)/build/llvm/bin/llvm-config \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ - -DLIBCXX_HAS_PTHREAD_API:BOOL=ON \ + -DLIBCXX_ENABLE_THREADS=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DLIBCXX_ENABLE_SHARED:BOOL=OFF \ -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY:BOOL=OFF \ @@ -101,7 +101,7 @@ build/libcxxabi.BUILT: build/libcxx.BUILT build/llvm.BUILT -DCMAKE_C_COMPILER_WORKS=ON \ -DLIBCXXABI_ENABLE_EXCEPTIONS:BOOL=OFF \ -DLIBCXXABI_ENABLE_SHARED:BOOL=OFF \ - -DLIBCXXABI_HAS_PTHREAD_API:BOOL=ON \ + -DLIBCXXABI_ENABLE_THREADS=OFF \ -DCXX_SUPPORTS_CXX11=ON \ -DLLVM_COMPILER_CHECKED=ON \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \