From: Petr Hosek Date: Fri, 27 Apr 2018 01:25:32 +0000 (+0000) Subject: Revert "[CMake] Make simple source used for CMake checks a C file" X-Git-Tag: llvmorg-7.0.0-rc1~7259 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d3df3cf4445532f7db39773c39556f733208122;p=platform%2Fupstream%2Fllvm.git Revert "[CMake] Make simple source used for CMake checks a C file" This reverts commit r331003 which breaks sanitizer bots because of missing 32-bit libstdc++ library. llvm-svn: 331009 --- diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake index e58dc6f..82c3d28 100644 --- a/compiler-rt/cmake/config-ix.cmake +++ b/compiler-rt/cmake/config-ix.cmake @@ -125,7 +125,7 @@ set(COMPILER_RT_SUPPORTED_ARCH) # platform. We use the results of these tests to build only the various target # runtime libraries supported by our current compilers cross-compiling # abilities. -set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.c) +set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.cc) file(WRITE ${SIMPLE_SOURCE} "#include \n#include \nint main() { printf(\"hello, world\"); }\n") # Detect whether the current target platform is 32-bit or 64-bit, and setup