[CMake] Rename back SIMPLE_SOURCE to compile as C++
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Wed, 21 Sep 2016 05:44:06 +0000 (05:44 +0000)
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Wed, 21 Sep 2016 05:44:06 +0000 (05:44 +0000)
commitb29784157250228f96aafdc277d3bbae4767d49e
treead4524e94abe1efbb7ac1826a3cdf014892b087e
parent0d57392ef3962e4e7cf909da33fb438560788d2c
[CMake] Rename back SIMPLE_SOURCE to compile as C++

This was changed in rL276151 and causes problems if the C++ compiler does not
support the same arches as the C compiler.
For the builtins, only the C compiler is tested in try_compile_only.

Additionally, -fno-exceptions is passed in (if available) to work around
the case where no libunwind is available.

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

llvm-svn: 282054
compiler-rt/cmake/Modules/CompilerRTUtils.cmake
compiler-rt/cmake/config-ix.cmake