[libc] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES. (#117265)
[llvm-project.git] / libc / src / assert / CMakeLists.txt
blobcb81e3b68b1dce17b7c2b518641133d1861c5cf2
1 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
3 else()
4   add_subdirectory(generic)
5 endif()
7 if(TARGET libc.src.assert.${LIBC_TARGET_OS}.__assert_fail)
8   set(assert_fail_dep libc.src.assert.${LIBC_TARGET_OS}.__assert_fail)
9 else()
10   set(assert_fail_dep libc.src.assert.generic.__assert_fail)
11 endif()
13 add_entrypoint_object(
14   __assert_fail
15   ALIAS
16   DEPENDS
17     ${assert_fail_dep}