summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-04-26 23:35:13 +0000
committerPetr Hosek <phosek@chromium.org>2018-04-26 23:35:13 +0000
commit887fbc61d4ad17842214329dddcd8085d822081a (patch)
treeb625d5bccefa739fe3d661e3a7855b1e457e5803 /compiler-rt
parent2c9cc9c7311a9dfaf0aec24db5a6ffcb783bac82 (diff)
downloadbcm5719-llvm-887fbc61d4ad17842214329dddcd8085d822081a.tar.gz
bcm5719-llvm-887fbc61d4ad17842214329dddcd8085d822081a.zip
[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 llvm-svn: 331003
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/cmake/config-ix.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake
index 82c3d2859fd..e58dc6f762c 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.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
OpenPOWER on IntegriCloud