[CMake][libcxxabi] Use -nodefaultlibs for CMake checks
authorPetr Hosek <phosek@chromium.org>
Fri, 7 Apr 2017 20:10:41 +0000 (20:10 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 7 Apr 2017 20:10:41 +0000 (20:10 +0000)
commit5f3d5be3dd04534a31d62881ef6f551b10d627e7
treed9f44b8f08706f525e285df27a8815deb657faf9
parent3dc83e5e31e2ef9c2a9ddfd04a1c648d523007ea
[CMake][libcxxabi] Use -nodefaultlibs for CMake checks

Since libc++abi is built with -nodefaultlibs, we should be using this
option even for CMake checks to avoid any inconsistency and also to
avoid dependency on a working C++ standard library just for the setting
up the build itself. The implementation is largely similar to the one
used by libc++.

Differential Revision: https://reviews.llvm.org/D31639

llvm-svn: 299797
libcxxabi/CMakeLists.txt
libcxxabi/cmake/Modules/HandleCompilerRT.cmake [new file with mode: 0644]
libcxxabi/cmake/config-ix.cmake