diff options
author | Yi Kong <yikong@google.com> | 2019-07-22 20:41:03 +0000 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2019-07-22 20:41:03 +0000 |
commit | d8bdb9225ce3896797892293053efac8ad8d52fb (patch) | |
tree | 57204c23990a57ccf961afb42d3e58de8ba9f6d0 /libcxxabi/src/fallback_malloc.cpp | |
parent | 4de5d9d61213d2b69557cb969862412d743114f7 (diff) | |
download | bcm5719-llvm-d8bdb9225ce3896797892293053efac8ad8d52fb.tar.gz bcm5719-llvm-d8bdb9225ce3896797892293053efac8ad8d52fb.zip |
[runtimes] Don't depend on libpthread on Android
r362048 added support for ELF dependent libraries, but broke Android
build since Android does not have libpthread. Remove the dependency on
the Android build.
Differential Revision: https://reviews.llvm.org/D65098
llvm-svn: 366734
Diffstat (limited to 'libcxxabi/src/fallback_malloc.cpp')
-rw-r--r-- | libcxxabi/src/fallback_malloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/fallback_malloc.cpp b/libcxxabi/src/fallback_malloc.cpp index 73ea28ed824..9d6240752a1 100644 --- a/libcxxabi/src/fallback_malloc.cpp +++ b/libcxxabi/src/fallback_malloc.cpp @@ -13,7 +13,7 @@ #include <__threading_support> #ifndef _LIBCXXABI_HAS_NO_THREADS -#if defined(__unix__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA) +#if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCXXABI_HAS_COMMENT_LIB_PRAGMA) #pragma comment(lib, "pthread") #endif #endif |