447818e0fd208172e6c3b0931cfc3f187080b026
[lldb.git] / libc / src / signal / linux / CMakeLists.txt
1
2 add_entrypoint_object(
3   raise
4   SRCS
5     raise.cpp
6   HDRS
7     signal.h
8     ../raise.h
9   DEPENDS
10     sys_syscall_h
11     linux_syscall_h
12     signal_h
13 )
14
15 add_object(
16   __restore
17   SRC
18     __restore.cpp
19   COMPILE_OPTIONS
20     -fomit-frame-pointer
21     -O3
22     -Wframe-larger-than=0
23     -Werror
24     -Wno-attributes
25     # asan creates asan.module_ctor which uses stack space, causing warinngs.
26     -fno-sanitize=address
27   DEPENDS
28     linux_syscall_h
29     sys_syscall_h
30 )
31
32 add_entrypoint_object(
33   sigaction
34   SRCS
35     sigaction.cpp
36   HDRS
37     signal.h
38     ../sigaction.h
39   DEPENDS
40     __restore
41     sys_syscall_h
42     linux_syscall_h
43     signal_h
44   SPECIAL_OBJECTS
45     __restore
46 )
47
48 add_entrypoint_object(
49   sigprocmask
50   SRCS
51     sigprocmask.cpp
52   HDRS
53     signal.h
54     ../sigprocmask.h
55   DEPENDS
56     sys_syscall_h
57     linux_syscall_h
58     __errno_location
59     signal_h
60 )
61
62 add_entrypoint_object(
63   sigemptyset
64   SRCS
65     sigemptyset.cpp
66   HDRS
67     signal.h
68     ../sigemptyset.h
69   DEPENDS
70     __errno_location
71     errno_h
72     signal_h
73 )
74
75 add_entrypoint_object(
76   sigaddset
77   SRCS
78     sigaddset.cpp
79   HDRS
80     signal.h
81     ../sigaddset.h
82   DEPENDS
83     __errno_location
84     errno_h
85     signal_h
86 )
87
88 add_entrypoint_object(
89   signal
90   SRCS
91     signal.cpp
92   HDRS
93     signal.h
94     ../signal.h
95   DEPENDS
96     sigaction
97     signal_h
98 )