[compiler-rt] r205184 - [sanitizer] Test that we can compile C++ code on the target platform.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Mon Mar 31 06:50:14 PDT 2014


Author: eugenis
Date: Mon Mar 31 08:50:13 2014
New Revision: 205184

URL: http://llvm.org/viewvc/llvm-project?rev=205184&view=rev
Log:
[sanitizer] Test that we can compile C++ code on the target platform.

Modified:
    compiler-rt/trunk/CMakeLists.txt

Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=205184&r1=205183&r2=205184&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Mon Mar 31 08:50:13 2014
@@ -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





More information about the llvm-commits mailing list