[compiler-rt] r276151 - [compiler-rt] Don't require c++ headers when configuring compiler-rt builds
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 20 11:25:47 PDT 2016
Author: fjricci
Date: Wed Jul 20 13:25:46 2016
New Revision: 276151
URL: http://llvm.org/viewvc/llvm-project?rev=276151&view=rev
Log:
[compiler-rt] Don't require c++ headers when configuring compiler-rt builds
Summary:
A sysroot without c++ headers is able to build compiler-rt, don't
require them when configuring available architectures from cmake.
Reviewers: samsonov, beanz, compnerd
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D22469
Modified:
compiler-rt/trunk/cmake/config-ix.cmake
Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=276151&r1=276150&r2=276151&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Wed Jul 20 13:25:46 2016
@@ -92,8 +92,8 @@ 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)
-file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\n#include <limits>\nint main() {}\n")
+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")
# Add $arch as supported with no additional flags.
macro(add_default_target_arch arch)
More information about the llvm-commits
mailing list