1add_entrypoint_object(
2  atoi
3  SRCS
4    atoi.cpp
5  HDRS
6    atoi.h
7  DEPENDS
8    libc.src.__support.str_conv_utils
9)
10
11add_entrypoint_object(
12  atol
13  SRCS
14    atol.cpp
15  HDRS
16    atol.h
17  DEPENDS
18    libc.src.__support.str_conv_utils
19)
20
21add_entrypoint_object(
22  atoll
23  SRCS
24    atoll.cpp
25  HDRS
26    atoll.h
27  DEPENDS
28    libc.src.__support.str_conv_utils
29)
30
31add_entrypoint_object(
32  strtol
33  SRCS
34    strtol.cpp
35  HDRS
36    strtol.h
37  DEPENDS
38    libc.src.__support.str_conv_utils
39)
40
41add_entrypoint_object(
42  strtoll
43  SRCS
44    strtoll.cpp
45  HDRS
46    strtoll.h
47  DEPENDS
48    libc.src.__support.str_conv_utils
49)
50
51add_entrypoint_object(
52  strtoul
53  SRCS
54    strtoul.cpp
55  HDRS
56    strtoul.h
57  DEPENDS
58    libc.src.__support.str_conv_utils
59)
60
61add_entrypoint_object(
62  strtoull
63  SRCS
64    strtoull.cpp
65  HDRS
66    strtoull.h
67  DEPENDS
68    libc.src.__support.str_conv_utils
69)
70
71add_entrypoint_object(
72  abs
73  SRCS
74    abs.cpp
75  HDRS
76    abs.h
77  DEPENDS
78    libc.src.__support.integer_operations
79)
80
81add_entrypoint_object(
82  labs
83  SRCS
84    labs.cpp
85  HDRS
86    labs.h
87  DEPENDS
88    libc.src.__support.integer_operations
89)
90
91add_entrypoint_object(
92  llabs
93  SRCS
94    llabs.cpp
95  HDRS
96    llabs.h
97  DEPENDS
98    libc.src.__support.integer_operations
99)
100
101add_entrypoint_object(
102  div
103  SRCS
104    div.cpp
105  HDRS
106    div.h
107  DEPENDS
108    libc.include.stdlib
109    libc.src.__support.integer_operations
110)
111
112add_entrypoint_object(
113  ldiv
114  SRCS
115    ldiv.cpp
116  HDRS
117    ldiv.h
118  DEPENDS
119    libc.include.stdlib
120    libc.src.__support.integer_operations
121)
122
123add_entrypoint_object(
124  lldiv
125  SRCS
126    lldiv.cpp
127  HDRS
128    lldiv.h
129  DEPENDS
130    libc.include.stdlib
131    libc.src.__support.integer_operations
132)
133
134add_entrypoint_object(
135  bsearch
136  SRCS
137    bsearch.cpp
138  HDRS
139    bsearch.h
140  DEPENDS
141    libc.include.stdlib
142)
143
144if(NOT LLVM_LIBC_FULL_BUILD)
145  return()
146endif()
147
148if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
149  add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
150endif()
151
152add_entrypoint_object(
153  _Exit
154  ALIAS
155  DEPENDS
156    .${LIBC_TARGET_OS}._Exit
157)
158
159add_entrypoint_object(
160  abort
161  SRCS
162    abort.cpp
163  HDRS
164    abort.h
165  DEPENDS
166    libc.include.stdlib
167    libc.src.signal.raise
168    ._Exit
169)
170