[sanitizer] Enable threads for libc++ build used by the symbolizer

Disabling threads makes <atomic> unusable, but this is needed by LLVM
libraries that are dependencies of the symbolizer.

Differential Revision: https://reviews.llvm.org/D45424

llvm-svn: 329672
This commit is contained in:
Petr Hosek 2018-04-10 05:54:36 +00:00
parent 4e2698ca9e
commit 00b9248cb3
2 changed files with 4 additions and 2 deletions

View File

@ -98,12 +98,10 @@ if [[ ! -d ${LIBCXX_BUILD} ]]; then
-DLIBCXXABI_ENABLE_ASSERTIONS=OFF \
-DLIBCXXABI_ENABLE_EXCEPTIONS=OFF \
-DLIBCXXABI_ENABLE_SHARED=OFF \
-DLIBCXXABI_ENABLE_THREADS=OFF \
-DLIBCXX_ENABLE_ASSERTIONS=OFF \
-DLIBCXX_ENABLE_EXCEPTIONS=OFF \
-DLIBCXX_ENABLE_RTTI=OFF \
-DLIBCXX_ENABLE_SHARED=OFF \
-DLIBCXX_ENABLE_THREADS=OFF \
$LLVM_SRC
fi
cd ${LIBCXX_BUILD}

View File

@ -15,6 +15,10 @@ __divdi3 U
__dso_handle U
__errno_location U
__interceptor_pread w
__interceptor_pthread_cond_broadcast w
__interceptor_pthread_cond_wait w
__interceptor_pthread_mutex_lock w
__interceptor_pthread_mutex_unlock w
__interceptor_read w
__interceptor_realpath w
__moddi3 U