[libcxx][libcxxabi][libunwind] Use libgcc on Android
authorShoaib Meenai <smeenai@fb.com>
Fri, 24 Apr 2020 04:19:11 +0000 (21:19 -0700)
committerShoaib Meenai <smeenai@fb.com>
Thu, 30 Apr 2020 22:42:32 +0000 (15:42 -0700)
commitcc259638cb41bb4c80e98a00e61387a5ff5ca490
treeb947d214fb5ae2f79e4cc7787beab6cfd201c18d
parentc14ac8043ed1d8128e515c88e78186dd1ca5a655
[libcxx][libcxxabi][libunwind] Use libgcc on Android

Android doesn't have a libgcc_s and uses libgcc instead, so adjust the
build accordingly. This matches compiler-rt's build setup. libc++abi and
libunwind were already checking for libgcc but in a different context.
This change makes them search only for libgcc on Android now, but the
code to link against libgcc if it were present was already there.

Reviewed By: #libc, #libc_abi, #libunwind, rprichard, srhines

Differential Revision: https://reviews.llvm.org/D78787
libcxx/CMakeLists.txt
libcxx/cmake/config-ix.cmake
libcxxabi/cmake/config-ix.cmake
libunwind/cmake/config-ix.cmake