2019-10-05 01:30:54 +08:00
|
|
|
add_entrypoint_library(
|
2022-08-17 04:27:31 +08:00
|
|
|
${LIBC_TARGET}
|
2019-10-05 01:30:54 +08:00
|
|
|
DEPENDS
|
2021-02-24 13:19:05 +08:00
|
|
|
${TARGET_LLVMLIBC_ENTRYPOINTS}
|
2019-10-16 04:25:36 +08:00
|
|
|
)
|
2021-03-20 12:50:48 +08:00
|
|
|
|
|
|
|
if(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR)
|
2021-04-05 01:13:19 +08:00
|
|
|
set(LIBC_INSTALL_LIBRARY_DIR ${CMAKE_INSTALL_LIBDIR}/${LLVM_DEFAULT_TARGET_TRIPLE})
|
2021-03-20 12:50:48 +08:00
|
|
|
else()
|
2021-04-05 01:13:19 +08:00
|
|
|
set(LIBC_INSTALL_LIBRARY_DIR ${CMAKE_INSTALL_LIBDIR})
|
2021-03-20 12:50:48 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
install(
|
2022-08-17 04:27:31 +08:00
|
|
|
TARGETS ${LIBC_TARGET}
|
2021-07-03 13:18:37 +08:00
|
|
|
ARCHIVE DESTINATION "${LIBC_INSTALL_LIBRARY_DIR}"
|
2022-08-17 04:27:31 +08:00
|
|
|
COMPONENT ${LIBC_COMPONENT}
|
2021-03-20 12:50:48 +08:00
|
|
|
)
|