[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / src / threads / CMakeLists.txt
blobb3b22e7f5c735a8481809149211616a9d8286e96
1 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   add_subdirectory(${LIBC_TARGET_OS})
3 endif()
5 add_entrypoint_object(
6   call_once
7   SRCS
8     call_once.cpp
9   HDRS
10     call_once.h
11   DEPENDS
12     libc.include.threads
13     libc.src.__support.threads.callonce
16 add_entrypoint_object(
17   thrd_create
18   SRCS
19     thrd_create.cpp
20   HDRS
21     thrd_create.h
22   DEPENDS
23     libc.src.__support.threads.thread
24     libc.include.threads
25   COMPILE_OPTIONS
26     -O3
27     -fno-omit-frame-pointer # This allows us to sniff out the thread args from
28                             # the new thread's stack reliably.
31 add_entrypoint_object(
32   thrd_join
33   SRCS
34     thrd_join.cpp
35   HDRS
36     thrd_join.h
37   DEPENDS
38     libc.include.threads
39     libc.src.__support.threads.thread
42 add_entrypoint_object(
43   thrd_detach
44   SRCS
45     thrd_detach.cpp
46   HDRS
47     thrd_detach.h
48   DEPENDS
49     libc.include.threads
50     libc.src.__support.threads.thread
53 add_entrypoint_object(
54   thrd_current
55   SRCS
56     thrd_current.cpp
57   HDRS
58     thrd_current.h
59   DEPENDS
60     libc.include.threads
61     libc.src.__support.threads.thread
64 add_entrypoint_object(
65   thrd_equal
66   SRCS
67     thrd_equal.cpp
68   HDRS
69     thrd_equal.h
70   DEPENDS
71     libc.include.threads
72     libc.src.__support.threads.thread
75 add_entrypoint_object(
76   thrd_exit
77   SRCS
78     thrd_exit.cpp
79   HDRS
80     thrd_exit.h
81   DEPENDS
82     libc.include.threads
83     libc.src.__support.threads.thread
86 add_entrypoint_object(
87   mtx_init
88   SRCS
89     mtx_init.cpp
90   HDRS
91     mtx_init.h
92   DEPENDS
93     libc.include.threads
94     libc.src.__support.threads.mutex
97 add_entrypoint_object(
98   mtx_destroy
99   SRCS
100     mtx_destroy.cpp
101   HDRS
102     mtx_destroy.h
103   DEPENDS
104     libc.include.threads
105     libc.src.__support.threads.mutex
108 add_entrypoint_object(
109   mtx_lock
110   SRCS
111     mtx_lock.cpp
112   HDRS
113     mtx_lock.h
114   DEPENDS
115     libc.include.threads
116     libc.src.__support.threads.mutex
119 add_entrypoint_object(
120   mtx_unlock
121   SRCS
122     mtx_unlock.cpp
123   HDRS
124     mtx_unlock.h
125   DEPENDS
126     libc.include.threads
127     libc.src.__support.threads.mutex
130 add_entrypoint_object(
131   tss_create
132   SRCS
133     tss_create.cpp
134   HDRS
135     tss_create.h
136   DEPENDS
137     libc.include.threads
138     libc.src.__support.threads.mutex
141 add_entrypoint_object(
142   tss_delete
143   SRCS
144     tss_delete.cpp
145   HDRS
146     tss_delete.h
147   DEPENDS
148     libc.include.threads
149     libc.src.__support.threads.mutex
152 add_entrypoint_object(
153   tss_get
154   SRCS
155     tss_get.cpp
156   HDRS
157     tss_get.h
158   DEPENDS
159     libc.include.threads
160     libc.src.__support.threads.mutex
163 add_entrypoint_object(
164   tss_set
165   SRCS
166     tss_set.cpp
167   HDRS
168     tss_set.h
169   DEPENDS
170     libc.include.threads
171     libc.src.__support.threads.mutex
174 add_entrypoint_object(
175   cnd_init
176   ALIAS
177   DEPENDS
178     .${LIBC_TARGET_OS}.cnd_init
181 add_entrypoint_object(
182   cnd_destroy
183   ALIAS
184   DEPENDS
185     .${LIBC_TARGET_OS}.cnd_destroy
188 add_entrypoint_object(
189   cnd_wait
190   ALIAS
191   DEPENDS
192     .${LIBC_TARGET_OS}.cnd_wait
195 add_entrypoint_object(
196   cnd_signal
197   ALIAS
198   DEPENDS
199     .${LIBC_TARGET_OS}.cnd_signal
202 add_entrypoint_object(
203   cnd_broadcast
204   ALIAS
205   DEPENDS
206     .${LIBC_TARGET_OS}.cnd_broadcast