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/mutex.cpp | |
| parent | 4de5d9d61213d2b69557cb969862412d743114f7 (diff) | |
[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/mutex.cpp')
| -rw-r--r-- | libcxx/src/mutex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/mutex.cpp b/libcxx/src/mutex.cpp index 0d69d7cacfa1..e741432db192 100644 --- a/libcxx/src/mutex.cpp +++ b/libcxx/src/mutex.cpp @@ -13,7 +13,7 @@ #include "__undef_macros" #ifndef _LIBCPP_HAS_NO_THREADS -#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 |
