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

llvm-svn: 205184
This commit is contained in:
Evgeniy Stepanov 2014-03-31 13:50:13 +00:00
parent 78a8435fd6
commit ff127bff89
1 changed files with 2 additions and 2 deletions

View 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