Allow LIBCXXABI_SINGLE_THREADED to be defined by build scripts

llvm-svn: 216952
This commit is contained in:
Jonathan Roelofs 2014-09-02 21:23:49 +00:00
parent c59e585126
commit 10e25f4a0c
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@
#include <unistd.h>
#if defined(_POSIX_THREADS) && _POSIX_THREADS > 0
#if !defined(LIBCXXABI_SINGLE_THREADED) && \
defined(_POSIX_THREADS) && _POSIX_THREADS > 0
# define LIBCXXABI_SINGLE_THREADED 0
#else
# define LIBCXXABI_SINGLE_THREADED 1