[PATCH] D22469: [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:33:16 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL276151: [compiler-rt] Don't require c++ headers when configuring compiler-rt builds (authored by fjricci).
Changed prior to commit:
https://reviews.llvm.org/D22469?vs=64382&id=64718#toc
Repository:
rL LLVM
https://reviews.llvm.org/D22469
Files:
compiler-rt/trunk/cmake/config-ix.cmake
Index: compiler-rt/trunk/cmake/config-ix.cmake
===================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake
+++ compiler-rt/trunk/cmake/config-ix.cmake
@@ -92,8 +92,8 @@
# 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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22469.64718.patch
Type: text/x-patch
Size: 829 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160720/6d6f561f/attachment.bin>
More information about the llvm-commits
mailing list