[CMake] Pass -nostdlib if supported
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Tue, 2 Aug 2016 05:51:09 +0000 (05:51 +0000)
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Tue, 2 Aug 2016 05:51:09 +0000 (05:51 +0000)
commit55933dfb32162efe70316d7b22b9ac8791b3c138
tree085cf3828148f8e73c78ad948b7852ce4b672b15
parent9b2c3ab6206f9b220a005dfac933901987977c62
[CMake] Pass -nostdlib if supported

The sanitizers use C++ but don't require linking with the library.

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

llvm-svn: 277419
compiler-rt/CMakeLists.txt
compiler-rt/cmake/config-ix.cmake