2019-10-05 01:30:54 +08:00
|
|
|
add_entrypoint_library(
|
|
|
|
llvmlibc
|
|
|
|
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)
|
|
|
|
set(LIBC_INSTALL_LIBRARY_DIR lib${LLVM_LIBDIR_SUFFIX}/${LLVM_DEFAULT_TARGET_TRIPLE})
|
|
|
|
else()
|
|
|
|
set(LIBC_INSTALL_LIBRARY_DIR lib${LLVM_LIBDIR_SUFFIX})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
install(
|
|
|
|
TARGETS llvmlibc
|
2021-07-03 13:18:37 +08:00
|
|
|
ARCHIVE DESTINATION "${LIBC_INSTALL_LIBRARY_DIR}"
|
2021-03-20 12:50:48 +08:00
|
|
|
COMPONENT llvmlibc
|
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target(
|
|
|
|
install-llvmlibc
|
|
|
|
DEPENDS llvmlibc
|
|
|
|
COMMAND "${CMAKE_COMMAND}" -DCMAKE_INSTALL_COMPONENT=llvmlibc
|
|
|
|
-P "${LIBC_BINARY_DIR}/cmake_install.cmake"
|
|
|
|
)
|