[sanitizer] Test that we can compile C++ code on the target platform.
llvm-svn: 205184
This commit is contained in:
parent
78a8435fd6
commit
ff127bff89
|
@ -172,8 +172,8 @@ endfunction()
|
||||||
# platform. We use the results of these tests to build only the various target
|
# platform. We use the results of these tests to build only the various target
|
||||||
# runtime libraries supported by our current compilers cross-compiling
|
# runtime libraries supported by our current compilers cross-compiling
|
||||||
# abilities.
|
# abilities.
|
||||||
set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.c)
|
set(SIMPLE_SOURCE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/simple.cc)
|
||||||
file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\nint main() {}\n")
|
file(WRITE ${SIMPLE_SOURCE} "#include <stdlib.h>\n#include <limits>\nint main() {}\n")
|
||||||
|
|
||||||
# test_target_arch(<arch> <target flags...>)
|
# test_target_arch(<arch> <target flags...>)
|
||||||
# Sets the target flags for a given architecture and determines if this
|
# Sets the target flags for a given architecture and determines if this
|
||||||
|
|
Loading…
Reference in New Issue