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 /libcxx/src/debug.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 'libcxx/src/debug.cpp')
-rw-r--r-- | libcxx/src/debug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/debug.cpp b/libcxx/src/debug.cpp index c4cc281d586..1f5ce1052f8 100644 --- a/libcxx/src/debug.cpp +++ b/libcxx/src/debug.cpp @@ -15,7 +15,7 @@ #include "__hash_table" #ifndef _LIBCPP_HAS_NO_THREADS #include "mutex" -#if defined(__unix__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA) +#if defined(__unix__) && !defined(__ANDROID__) && defined(__ELF__) && defined(_LIBCPP_HAS_COMMENT_LIB_PRAGMA) #pragma comment(lib, "pthread") #endif #endif |