[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 14:14:47 PDT 2016
fjricci updated this revision to Diff 64382.
fjricci added a comment.
Fix syntax error
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")
# Add $arch as supported with no additional flags.
macro(add_default_target_arch arch)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22469.64382.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160718/fbec4f21/attachment.bin>
More information about the llvm-commits
mailing list