summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-04-27 01:25:32 +0000
committerPetr Hosek <phosek@chromium.org>2018-04-27 01:25:32 +0000
commitb820ab28d0a40f7719fcaa3f94e824d4c84b55a0 (patch)
tree7d50ddb400708950fff4fad42e1677e8552e35fe /cmake
parent1b9070ef93a6aaf01c9e964df517689f6f511574 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@331009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index e58dc6f76..82c3d2859 100644
--- a/cmake/config-ix.cmake
+++ b/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 <stdlib.h>\n#include <stdio.h>\nint main() { printf(\"hello, world\"); }\n")
# Detect whether the current target platform is 32-bit or 64-bit, and setup