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
71if(NOT LLVM_LIBC_FULL_BUILD)
72  return()
73endif()
74
75if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
76  add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
77endif()
78
79add_entrypoint_object(
80  _Exit
81  ALIAS
82  DEPENDS
83    .${LIBC_TARGET_OS}._Exit
84)
85
86add_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
98add_entrypoint_object(
99  abs
100  SRCS
101    abs.cpp
102  HDRS
103    abs.h
104  DEPENDS
105    libc.src.__support.integer_operations
106)
107
108add_entrypoint_object(
109  labs
110  SRCS
111    labs.cpp
112  HDRS
113    labs.h
114  DEPENDS
115    libc.src.__support.integer_operations
116)
117
118add_entrypoint_object(
119  llabs
120  SRCS
121    llabs.cpp
122  HDRS
123    llabs.h
124  DEPENDS
125    libc.src.__support.integer_operations
126)
127