forked from OSchip/llvm-project
[libc][obvious] Make *abs and *div functions buildable in default mode.
This commit is contained in:
parent
e9d34c5429
commit
5252aa2981
|
@ -68,33 +68,6 @@ add_entrypoint_object(
|
|||
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(
|
||||
abs
|
||||
SRCS
|
||||
|
@ -154,3 +127,30 @@ add_entrypoint_object(
|
|||
DEPENDS
|
||||
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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue