forked from OSchip/llvm-project
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:
parent
21cd2152d3
commit
c496eba75f
|
@ -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()
|
||||
|
|
|
@ -53,4 +53,6 @@ else()
|
|||
endforeach()
|
||||
endif()
|
||||
|
||||
add_subdirectory(lit_tests)
|
||||
if(UBSAN_SUPPORTED_ARCH)
|
||||
add_subdirectory(lit_tests)
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue