[sanitizer] Test that we can compile C++ code on the target platform.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 31 Mar 2014 13:50:13 +0000 (13:50 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 31 Mar 2014 13:50:13 +0000 (13:50 +0000)
llvm-svn: 205184

compiler-rt/CMakeLists.txt

index dbc32f112615d9296da6052c87fbc62d6b2deeaa..3b295e72d156e865dbbd7fc0234c90c1913c6492 100644 (file)
@@ -172,8 +172,8 @@ endfunction()
 # 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.c)
-file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\nint main() {}\n")
+set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.cc)
+file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\n#include <limits>\nint main() {}\n")
 
 # test_target_arch(<arch> <target flags...>)
 # Sets the target flags for a given architecture and determines if this