[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
Mon Jul 18 13:20:48 PDT 2016
fjricci updated this revision to Diff 64372.
fjricci added a comment.
Add 'printf' call to simple source file
https://reviews.llvm.org/D22469
Files:
cmake/config-ix.cmake
Index: cmake/config-ix.cmake
===================================================================
--- cmake/config-ix.cmake
+++ 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\") {}\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.64372.patch
Type: text/x-patch
Size: 773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160718/a9c7929a/attachment.bin>
More information about the llvm-commits
mailing list