[CMake] Fix ASM building in llvm/runtimes
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Fri, 19 Aug 2016 06:46:00 +0000 (06:46 +0000)
committerJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Fri, 19 Aug 2016 06:46:00 +0000 (06:46 +0000)
commitddbab7d982347271c748336c0545599ce746ffae
treebd32ca2eb25b08fbcf21e90806a87a4a43708095
parenta535636759cb3b6ad6b7248177e98a7a8c7cf787
[CMake] Fix ASM building in llvm/runtimes

When compiler-rt's CMake is not directly invoked, it will currently not call
project() and thus ASM will not be enabled.
We also don't need to put the .S files through the C compiler then.

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

llvm-svn: 279215
compiler-rt/CMakeLists.txt
compiler-rt/lib/tsan/CMakeLists.txt