Skip to content

Commit 5252aa2

Browse files
author
Siva Chandra Reddy
committed
[libc][obvious] Make *abs and *div functions buildable in default mode.
1 parent e9d34c5 commit 5252aa2

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

libc/src/stdlib/CMakeLists.txt

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -68,33 +68,6 @@ add_entrypoint_object(
6868
libc.src.__support.str_conv_utils
6969
)
7070

71-
if(NOT LLVM_LIBC_FULL_BUILD)
72-
return()
73-
endif()
74-
75-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
76-
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
77-
endif()
78-
79-
add_entrypoint_object(
80-
_Exit
81-
ALIAS
82-
DEPENDS
83-
.${LIBC_TARGET_OS}._Exit
84-
)
85-
86-
add_entrypoint_object(
87-
abort
88-
SRCS
89-
abort.cpp
90-
HDRS
91-
abort.h
92-
DEPENDS
93-
libc.include.stdlib
94-
libc.src.signal.raise
95-
._Exit
96-
)
97-
9871
add_entrypoint_object(
9972
abs
10073
SRCS
@@ -154,3 +127,30 @@ add_entrypoint_object(
154127
DEPENDS
155128
libc.src.__support.integer_operations
156129
)
130+
131+
if(NOT LLVM_LIBC_FULL_BUILD)
132+
return()
133+
endif()
134+
135+
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
136+
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
137+
endif()
138+
139+
add_entrypoint_object(
140+
_Exit
141+
ALIAS
142+
DEPENDS
143+
.${LIBC_TARGET_OS}._Exit
144+
)
145+
146+
add_entrypoint_object(
147+
abort
148+
SRCS
149+
abort.cpp
150+
HDRS
151+
abort.h
152+
DEPENDS
153+
libc.include.stdlib
154+
libc.src.signal.raise
155+
._Exit
156+
)

0 commit comments

Comments
 (0)