[clang] Avoid linking libdl unless needed
[llvm-project.git] / libc / src / stdlib / CMakeLists.txt
blob50b7421944dd7bde7a2be5791c6cabdf36945599
1 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
3 endif()
5 add_entrypoint_object(
6   _Exit
7   ALIAS
8   DEPENDS
9     .${LIBC_TARGET_OS}._Exit
12 add_entrypoint_object(
13   abort
14   SRCS
15     abort.cpp
16   HDRS
17     abort.h
18   DEPENDS
19     libc.include.stdlib
20     libc.src.signal.raise
21     ._Exit