Don't create check-ubsan and check-dfsan commands if they are not supported on this platform

llvm-svn: 199979
This commit is contained in:
Alexey Samsonov 2014-01-24 08:06:21 +00:00
parent 21cd2152d3
commit c496eba75f
2 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,8 @@ set(DFSAN_RTL_CFLAGS
# Prevent clang from generating libc calls.
-ffreestanding)
filter_available_targets(DFSAN_SUPPORTED_ARCH x86_64)
# Static runtime library.
set(DFSAN_RUNTIME_LIBRARIES)
set(arch "x86_64")
@ -41,4 +43,6 @@ add_custom_command(OUTPUT ${CLANG_RESOURCE_DIR}/dfsan_abilist.txt
install(FILES ${CLANG_RESOURCE_DIR}/dfsan_abilist.txt
DESTINATION ${LIBCLANG_INSTALL_PATH})
add_subdirectory(lit_tests)
if(DFSAN_SUPPORTED_ARCH)
add_subdirectory(lit_tests)
endif()

View File

@ -53,4 +53,6 @@ else()
endforeach()
endif()
add_subdirectory(lit_tests)
if(UBSAN_SUPPORTED_ARCH)
add_subdirectory(lit_tests)
endif()