[Workflow] Roll back some settings since they caused more issues
[llvm-project.git] / libc / src / pthread / CMakeLists.txt
blobd5e6c802a8452360e5f51aa649cb6662ed959806
1 add_entrypoint_object(
2   pthread_attr_init
3   SRCS
4     pthread_attr_init.cpp
5   HDRS
6     pthread_attr_init.h
7   DEPENDS
8     libc.include.pthread
11 add_entrypoint_object(
12   pthread_attr_destroy
13   SRCS
14     pthread_attr_destroy.cpp
15   HDRS
16     pthread_attr_destroy.h
17   DEPENDS
18     libc.include.pthread
21 add_entrypoint_object(
22   pthread_attr_getdetachstate
23   SRCS
24     pthread_attr_getdetachstate.cpp
25   HDRS
26     pthread_attr_getdetachstate.h
27   DEPENDS
28     libc.include.pthread
31 add_entrypoint_object(
32   pthread_attr_setdetachstate
33   SRCS
34     pthread_attr_setdetachstate.cpp
35   HDRS
36     pthread_attr_setdetachstate.h
37   DEPENDS
38     libc.include.pthread
41 add_entrypoint_object(
42   pthread_attr_getguardsize
43   SRCS
44     pthread_attr_getguardsize.cpp
45   HDRS
46     pthread_attr_getguardsize.h
47   DEPENDS
48     libc.include.pthread
51 add_entrypoint_object(
52   pthread_attr_setguardsize
53   SRCS
54     pthread_attr_setguardsize.cpp
55   HDRS
56     pthread_attr_setguardsize.h
57   DEPENDS
58     libc.include.pthread
61 add_entrypoint_object(
62   pthread_attr_getstacksize
63   SRCS
64     pthread_attr_getstacksize.cpp
65   HDRS
66     pthread_attr_getstacksize.h
67   DEPENDS
68     libc.include.pthread
71 add_entrypoint_object(
72   pthread_attr_setstacksize
73   SRCS
74     pthread_attr_setstacksize.cpp
75   HDRS
76     pthread_attr_setstacksize.h
77   DEPENDS
78     libc.include.pthread
81 add_entrypoint_object(
82   pthread_attr_getstack
83   SRCS
84     pthread_attr_getstack.cpp
85   HDRS
86     pthread_attr_getstack.h
87   DEPENDS
88     libc.include.pthread
89     libc.src.pthread.pthread_attr_getstacksize
92 add_entrypoint_object(
93   pthread_attr_setstack
94   SRCS
95     pthread_attr_setstack.cpp
96   HDRS
97     pthread_attr_setstack.h
98   DEPENDS
99     libc.include.pthread
100     libc.src.pthread.pthread_attr_setstacksize
103 add_header_library(
104   pthread_mutexattr
105   HDRS
106     pthread_mutexattr.h
107   DEPENDS
108     libc.src.__support.common
109     libc.include.pthread
112 add_entrypoint_object(
113   pthread_mutexattr_init
114   SRCS
115     pthread_mutexattr_init.cpp
116   HDRS
117     pthread_mutexattr_init.h
118   DEPENDS
119     .pthread_mutexattr
120     libc.include.pthread
123 add_entrypoint_object(
124   pthread_mutexattr_gettype
125   SRCS
126     pthread_mutexattr_gettype.cpp
127   HDRS
128     pthread_mutexattr_gettype.h
129   DEPENDS
130     .pthread_mutexattr
131     libc.include.pthread
134 add_entrypoint_object(
135   pthread_mutexattr_settype
136   SRCS
137     pthread_mutexattr_settype.cpp
138   HDRS
139     pthread_mutexattr_settype.h
140   DEPENDS
141     .pthread_mutexattr
142     libc.include.pthread
145 add_entrypoint_object(
146   pthread_mutexattr_destroy
147   SRCS
148     pthread_mutexattr_destroy.cpp
149   HDRS
150     pthread_mutexattr_destroy.h
151   DEPENDS
152     .pthread_mutexattr
153     libc.include.errno
154     libc.include.pthread
157 add_entrypoint_object(
158   pthread_mutexattr_getrobust
159   SRCS
160     pthread_mutexattr_getrobust.cpp
161   HDRS
162     pthread_mutexattr_getrobust.h
163   DEPENDS
164     .pthread_mutexattr
165     libc.include.pthread
168 add_entrypoint_object(
169   pthread_mutexattr_setrobust
170   SRCS
171     pthread_mutexattr_setrobust.cpp
172   HDRS
173     pthread_mutexattr_setrobust.h
174   DEPENDS
175     .pthread_mutexattr
176     libc.include.errno
177     libc.include.pthread
180 add_entrypoint_object(
181   pthread_mutexattr_getpshared
182   SRCS
183     pthread_mutexattr_getpshared.cpp
184   HDRS
185     pthread_mutexattr_getpshared.h
186   DEPENDS
187     .pthread_mutexattr
188     libc.include.pthread
191 add_entrypoint_object(
192   pthread_mutexattr_setpshared
193   SRCS
194     pthread_mutexattr_setpshared.cpp
195   HDRS
196     pthread_mutexattr_setpshared.h
197   DEPENDS
198     .pthread_mutexattr
199     libc.include.errno
200     libc.include.pthread
203 add_entrypoint_object(
204   pthread_mutex_init
205   SRCS
206     pthread_mutex_init.cpp
207   HDRS
208     pthread_mutex_init.h
209   DEPENDS
210     .pthread_mutexattr
211     libc.include.errno
212     libc.include.pthread
213     libc.src.__support.threads.mutex
216 add_entrypoint_object(
217   pthread_mutex_destroy
218   SRCS
219     pthread_mutex_destroy.cpp
220   HDRS
221     pthread_mutex_destroy.h
222   DEPENDS
223     libc.include.pthread
224     libc.src.__support.threads.mutex
227 add_entrypoint_object(
228   pthread_mutex_lock
229   SRCS
230     pthread_mutex_lock.cpp
231   HDRS
232     pthread_mutex_lock.h
233   DEPENDS
234     libc.include.pthread
235     libc.src.__support.threads.mutex
238 add_entrypoint_object(
239   pthread_mutex_unlock
240   SRCS
241     pthread_mutex_unlock.cpp
242   HDRS
243     pthread_mutex_unlock.h
244   DEPENDS
245     libc.include.pthread
246     libc.src.__support.threads.mutex
249 add_entrypoint_object(
250   pthread_create
251   SRCS
252     pthread_create.cpp
253   HDRS
254     pthread_create.h
255   DEPENDS
256     libc.include.errno
257     libc.include.pthread
258     libc.src.__support.threads.thread
259     libc.src.pthread.pthread_attr_destroy
260     libc.src.pthread.pthread_attr_init
261     libc.src.pthread.pthread_attr_getdetachstate
262     libc.src.pthread.pthread_attr_getguardsize
263     libc.src.pthread.pthread_attr_getstack
264   COMPILE_OPTIONS
265     -O3
266     -fno-omit-frame-pointer
269 add_entrypoint_object(
270   pthread_join
271   SRCS
272     pthread_join.cpp
273   HDRS
274     pthread_join.h
275   DEPENDS
276     libc.include.pthread
277     libc.src.__support.threads.thread
280 add_entrypoint_object(
281   pthread_detach
282   SRCS
283     pthread_detach.cpp
284   HDRS
285     pthread_detach.h
286   DEPENDS
287     libc.include.pthread
288     libc.src.__support.threads.thread
291 add_entrypoint_object(
292   pthread_equal
293   SRCS
294     pthread_equal.cpp
295   HDRS
296     pthread_equal.h
297   DEPENDS
298     libc.include.pthread
299     libc.src.__support.threads.thread
302 add_entrypoint_object(
303   pthread_exit
304   SRCS
305     pthread_exit.cpp
306   HDRS
307     pthread_exit.h
308   DEPENDS
309     libc.include.pthread
310     libc.src.__support.threads.thread
313 add_entrypoint_object(
314   pthread_self
315   SRCS
316     pthread_self.cpp
317   HDRS
318     pthread_self.h
319   DEPENDS
320     libc.include.pthread
321     libc.src.__support.threads.thread
324 add_entrypoint_object(
325   pthread_setname_np
326   SRCS
327     pthread_setname_np.cpp
328   HDRS
329     pthread_setname_np.h
330   DEPENDS
331     libc.include.pthread
332     libc.src.__support.CPP.span
333     libc.src.__support.CPP.stringstream
334     libc.src.__support.threads.thread
337 add_entrypoint_object(
338   pthread_getname_np
339   SRCS
340     pthread_getname_np.cpp
341   HDRS
342     pthread_getname_np.h
343   DEPENDS
344     libc.include.pthread
345     libc.src.__support.CPP.span
346     libc.src.__support.CPP.stringstream
347     libc.src.__support.threads.thread
350 add_entrypoint_object(
351   pthread_key_create
352   SRCS
353     pthread_key_create.cpp
354   HDRS
355     pthread_key_create.h
356   DEPENDS
357     libc.include.errno
358     libc.include.pthread
359     libc.src.__support.threads.thread
362 add_entrypoint_object(
363   pthread_key_delete
364   SRCS
365     pthread_key_delete.cpp
366   HDRS
367     pthread_key_delete.h
368   DEPENDS
369     libc.include.errno
370     libc.include.pthread
371     libc.src.__support.threads.thread
374 add_entrypoint_object(
375   pthread_getspecific
376   SRCS
377     pthread_getspecific.cpp
378   HDRS
379     pthread_getspecific.h
380   DEPENDS
381     libc.include.errno
382     libc.include.pthread
383     libc.src.__support.threads.thread
386 add_entrypoint_object(
387   pthread_setspecific
388   SRCS
389     pthread_setspecific.cpp
390   HDRS
391     pthread_setspecific.h
392   DEPENDS
393     libc.include.errno
394     libc.include.pthread
395     libc.src.__support.threads.thread
398 add_entrypoint_object(
399   pthread_once
400   SRCS
401     pthread_once.cpp
402   HDRS
403     pthread_once.h
404   DEPENDS
405     libc.include.pthread
406     libc.src.__support.threads.callonce
409 add_entrypoint_object(
410   pthread_atfork
411   SRCS
412     pthread_atfork.cpp
413   HDRS
414     pthread_atfork.h
415   DEPENDS
416     libc.include.errno
417     libc.include.pthread
418     libc.src.__support.threads.fork_callbacks