• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1add_custom_target(check-libc)
2add_custom_target(libc-unit-tests)
3add_custom_target(libc-hermetic-tests)
4add_dependencies(check-libc libc-unit-tests libc-hermetic-tests)
5
6add_custom_target(exhaustive-check-libc)
7add_custom_target(libc-long-running-tests)
8
9add_subdirectory(UnitTest)
10
11if(LIBC_TARGET_OS_IS_GPU)
12  if(NOT TARGET libc.utils.gpu.loader)
13    message(WARNING "Cannot build libc GPU tests, missing loader.")
14    return()
15  elseif(LIBC_GPU_TESTS_DISABLED)
16    message(WARNING "Cannot build libc GPU tests, missing target architecture.")
17    return()
18  endif()
19endif()
20
21add_subdirectory(src)
22add_subdirectory(utils)
23
24if(NOT LLVM_LIBC_FULL_BUILD)
25  return()
26endif()
27
28add_subdirectory(include)
29
30if(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.
33  return()
34endif()
35
36add_subdirectory(IntegrationTest)
37add_subdirectory(integration)
38