[CMake][libcxx] Use builtins rather than gcc_s when compiler-rt is requested
authorPetr Hosek <phosek@chromium.org>
Wed, 5 Apr 2017 22:53:05 +0000 (22:53 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 5 Apr 2017 22:53:05 +0000 (22:53 +0000)
commit963bcd2ec31fd512b11bb557ec0c73337867dbe4
tree2e0b3f8bbcaa3109efb799cfdae2269b83831d9e
parente935296f369df6ac4bb54bf953c1a5ae219f5567
[CMake][libcxx] Use builtins rather than gcc_s when compiler-rt is requested

When compiler-rt is requested, we should attempt to link compiler-rt
builtins library rather than gcc_s.

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

llvm-svn: 299599
libcxx/cmake/Modules/HandleCompilerRT.cmake
libcxx/cmake/config-ix.cmake
libcxx/lib/CMakeLists.txt