diff options
author | Petr Hosek <phosek@chromium.org> | 2018-04-26 23:35:13 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-04-26 23:35:13 +0000 |
commit | 1b9070ef93a6aaf01c9e964df517689f6f511574 (patch) | |
tree | 50c7a15159b68d1f488ad10c263170a91af80354 /cmake | |
parent | 180743bbb38fc7ad7fdc0026716dffa64c19fb63 (diff) |
[CMake] Make simple source used for CMake checks a C file
The source being compiled is plain C, but using .cc extension forces it
to be compiled as C++ which requires a working C++ compiler including
C++ library which may not be the case when we're building compiler-rt
together with libcxx as part of runtimes build.
Differential Revision: https://reviews.llvm.org/D46152
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@331003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 82c3d2859..e58dc6f76 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.cc) +set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.c) 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 |