1 add_custom_target(check-libc)
2 add_custom_target(libc-unit-tests)
3 add_custom_target(libc-hermetic-tests)
4 add_dependencies(check-libc libc-unit-tests libc-hermetic-tests)
6 add_custom_target(exhaustive-check-libc)
7 add_custom_target(libc-long-running-tests)
9 add_subdirectory(UnitTest)
11 if(LIBC_TARGET_OS_IS_GPU)
12 if(NOT TARGET libc.utils.gpu.loader)
13 message(WARNING "Cannot build libc GPU tests, missing loader.")
15 elseif(LIBC_GPU_TESTS_DISABLED)
16 message(WARNING "Cannot build libc GPU tests, missing target architecture.")
22 add_subdirectory(utils)
24 if(NOT LLVM_LIBC_FULL_BUILD)
28 add_subdirectory(include)
30 if(NOT ${LIBC_TARGET_OS} STREQUAL "linux" AND
31 NOT ${LIBC_TARGET_OS} STREQUAL "gpu")
32 # Integration tests are currently only available for linux and the GPU.
36 add_subdirectory(IntegrationTest)
37 add_subdirectory(integration)