[libcxxabi] r216952 - Allow LIBCXXABI_SINGLE_THREADED to be defined by build scripts

Jonathan Roelofs jonathan at codesourcery.com
Tue Sep 2 14:23:49 PDT 2014


Author: jroelofs
Date: Tue Sep  2 16:23:49 2014
New Revision: 216952

URL: http://llvm.org/viewvc/llvm-project?rev=216952&view=rev
Log:
Allow LIBCXXABI_SINGLE_THREADED to be defined by build scripts

Modified:
    libcxxabi/trunk/src/config.h

Modified: libcxxabi/trunk/src/config.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/config.h?rev=216952&r1=216951&r2=216952&view=diff
==============================================================================
--- libcxxabi/trunk/src/config.h (original)
+++ libcxxabi/trunk/src/config.h Tue Sep  2 16:23:49 2014
@@ -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





More information about the cfe-commits mailing list