[NFC][Py Reformat] Added more commits to .git-blame-ignore-revs
[llvm-project.git] / libc / src / signal / linux / CMakeLists.txt
blobd0cb0a79312b84118036446add281436e2f101db
1 add_header_library(
2   signal_utils
3   HDRS
4     signal_utils.h
5   DEPENDS
6     libc.include.sys_syscall
7     libc.src.__support.OSUtil.osutil
10 add_entrypoint_object(
11   kill
12   SRCS
13     kill.cpp
14   HDRS
15     ../kill.h
16   DEPENDS
17     libc.include.signal
18     libc.src.errno.errno
19     libc.include.sys_syscall
20     libc.src.__support.OSUtil.osutil
23 add_entrypoint_object(
24   raise
25   SRCS
26     raise.cpp
27   HDRS
28     ../raise.h
29   DEPENDS
30     .signal_utils
31     libc.include.signal
32     libc.include.sys_syscall
33     libc.src.__support.OSUtil.osutil
36 add_object_library(
37   __restore
38   SRCS
39     __restore.cpp
40   COMPILE_OPTIONS
41     -fomit-frame-pointer
42     -O3
43     -Wframe-larger-than=0
44     -Werror
45     -Wno-attributes
46     # asan creates asan.module_ctor which uses stack space, causing warnings.
47     -fno-sanitize=address
48   DEPENDS
49     libc.include.sys_syscall
50     libc.src.__support.OSUtil.osutil
53 add_entrypoint_object(
54   sigaction
55   SRCS
56     sigaction.cpp
57   HDRS
58     ../sigaction.h
59   DEPENDS
60     .__restore
61     libc.include.signal
62     libc.include.sys_syscall
63     libc.src.__support.OSUtil.osutil
64     libc.src.errno.errno
67 add_entrypoint_object(
68   sigaltstack
69   SRCS
70     sigaltstack.cpp
71   HDRS
72     ../sigaltstack.h
73   DEPENDS
74     libc.include.signal
75     libc.include.sys_syscall
76     libc.src.__support.OSUtil.osutil
77     libc.src.errno.errno
80 add_entrypoint_object(
81   sigprocmask
82   SRCS
83     sigprocmask.cpp
84   HDRS
85     ../sigprocmask.h
86   DEPENDS
87     .signal_utils
88     libc.include.signal
89     libc.include.sys_syscall
90     libc.src.__support.OSUtil.osutil
91     libc.src.errno.errno
94 add_entrypoint_object(
95   sigemptyset
96   SRCS
97     sigemptyset.cpp
98   HDRS
99     ../sigemptyset.h
100   DEPENDS
101     .signal_utils
102     libc.include.signal
103     libc.src.errno.errno
106 add_entrypoint_object(
107   sigaddset
108   SRCS
109     sigaddset.cpp
110   HDRS
111     ../sigaddset.h
112   DEPENDS
113     .signal_utils
114     libc.include.signal
115     libc.src.errno.errno
118 add_entrypoint_object(
119   signal
120   SRCS
121     signal.cpp
122   HDRS
123     ../signal.h
124   DEPENDS
125     .sigaction
126     libc.include.signal
129 add_entrypoint_object(
130   sigfillset
131   SRCS
132     sigfillset.cpp
133   HDRS
134     ../sigfillset.h
135   DEPENDS
136     .signal_utils
137     libc.include.signal
138     libc.src.errno.errno
141 add_entrypoint_object(
142   sigdelset
143   SRCS
144     sigdelset.cpp
145   HDRS
146     ../sigdelset.h
147   DEPENDS
148     .signal_utils
149     libc.include.signal
150     libc.src.errno.errno