[flang] Fix length handling in character kind implicit conversion (#74586)
[llvm-project.git] / libc / test / CMakeLists.txt
blob5e8231ef27f461fcca2b13da6ecf871eeaac4592
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_ARCHITECTURE_IS_GPU AND
12    (NOT TARGET libc.utils.gpu.loader OR NOT TARGET libc.startup.gpu.crt1))
13   message(WARNING "Cannot build libc GPU tests, missing loader implementation")
14   return()
15 endif()
17 add_subdirectory(src)
18 add_subdirectory(utils)
20 if(LLVM_LIBC_FULL_BUILD AND NOT LIBC_TARGET_OS_IS_BAREMETAL)
21   add_subdirectory(IntegrationTest)
22 endif()
24 if(NOT LLVM_LIBC_FULL_BUILD)
25   return()
26 endif()
28 if(NOT ${LIBC_TARGET_OS} STREQUAL "linux" AND
29    NOT ${LIBC_TARGET_OS} STREQUAL "gpu")
30   # Integration tests are currently only available for linux and the GPU.
31   return()
32 endif()
33 add_subdirectory(integration)