Disable threads in libcxx and libcxxabi for now.

WASI libc doesn't currently support threads, so disable threading
support in libcxx and libcxxabi.
pull/18/head
Dan Gohman 6 years ago
parent 4d79cfc533
commit 9f96bf5ebe

@ -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 \ -DCMAKE_TOOLCHAIN_FILE=$(ROOT_DIR)/wasi-sdk.cmake \
-DLLVM_CONFIG_PATH=$(ROOT_DIR)/build/llvm/bin/llvm-config \ -DLLVM_CONFIG_PATH=$(ROOT_DIR)/build/llvm/bin/llvm-config \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
-DLIBCXX_HAS_PTHREAD_API:BOOL=ON \ -DLIBCXX_ENABLE_THREADS=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DLIBCXX_ENABLE_SHARED:BOOL=OFF \ -DLIBCXX_ENABLE_SHARED:BOOL=OFF \
-DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY: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 \ -DCMAKE_C_COMPILER_WORKS=ON \
-DLIBCXXABI_ENABLE_EXCEPTIONS:BOOL=OFF \ -DLIBCXXABI_ENABLE_EXCEPTIONS:BOOL=OFF \
-DLIBCXXABI_ENABLE_SHARED:BOOL=OFF \ -DLIBCXXABI_ENABLE_SHARED:BOOL=OFF \
-DLIBCXXABI_HAS_PTHREAD_API:BOOL=ON \ -DLIBCXXABI_ENABLE_THREADS=OFF \
-DCXX_SUPPORTS_CXX11=ON \ -DCXX_SUPPORTS_CXX11=ON \
-DLLVM_COMPILER_CHECKED=ON \ -DLLVM_COMPILER_CHECKED=ON \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \

Loading…
Cancel
Save