[libc][obvious] Make *abs and *div functions buildable in default mode.

This commit is contained in:
Siva Chandra Reddy 2021-09-20 05:44:10 +00:00
parent e9d34c5429
commit 5252aa2981
1 changed files with 27 additions and 27 deletions

View File

@ -68,33 +68,6 @@ add_entrypoint_object(
libc.src.__support.str_conv_utils libc.src.__support.str_conv_utils
) )
if(NOT LLVM_LIBC_FULL_BUILD)
return()
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
endif()
add_entrypoint_object(
_Exit
ALIAS
DEPENDS
.${LIBC_TARGET_OS}._Exit
)
add_entrypoint_object(
abort
SRCS
abort.cpp
HDRS
abort.h
DEPENDS
libc.include.stdlib
libc.src.signal.raise
._Exit
)
add_entrypoint_object( add_entrypoint_object(
abs abs
SRCS SRCS
@ -154,3 +127,30 @@ add_entrypoint_object(
DEPENDS DEPENDS
libc.src.__support.integer_operations libc.src.__support.integer_operations
) )
if(NOT LLVM_LIBC_FULL_BUILD)
return()
endif()
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
endif()
add_entrypoint_object(
_Exit
ALIAS
DEPENDS
.${LIBC_TARGET_OS}._Exit
)
add_entrypoint_object(
abort
SRCS
abort.cpp
HDRS
abort.h
DEPENDS
libc.include.stdlib
libc.src.signal.raise
._Exit
)