Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / src / spawn / CMakeLists.txt
blob4fbbaacb10d265f7cede4075ff690b7e6a601eac
1 if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
2   add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})
3 endif()
5 add_header_library(
6   file_actions
7   HDRS
8     file_actions.h
9   DEPENDS
10     libc.include.spawn
13 add_entrypoint_object(
14   posix_spawn_file_actions_init
15   SRCS
16     posix_spawn_file_actions_init.cpp
17   HDRS
18     posix_spawn_file_actions_init.h
19   DEPENDS
20     libc.include.spawn
23 add_entrypoint_object(
24   posix_spawn_file_actions_destroy
25   SRCS
26     posix_spawn_file_actions_destroy.cpp
27   HDRS
28     posix_spawn_file_actions_destroy.h
29   DEPENDS
30     .file_actions
31     libc.include.errno
32     libc.include.spawn
33     libc.src.__support.CPP.new
36 add_entrypoint_object(
37   posix_spawn_file_actions_adddup2
38   SRCS
39     posix_spawn_file_actions_adddup2.cpp
40   HDRS
41     posix_spawn_file_actions_adddup2.h
42   DEPENDS
43     .file_actions
44     libc.include.errno
45     libc.include.spawn
46     libc.src.__support.CPP.new
49 add_entrypoint_object(
50   posix_spawn_file_actions_addopen
51   SRCS
52     posix_spawn_file_actions_addopen.cpp
53   HDRS
54     posix_spawn_file_actions_addopen.h
55   DEPENDS
56     .file_actions
57     libc.include.errno
58     libc.include.spawn
59     libc.src.__support.CPP.new
62 add_entrypoint_object(
63   posix_spawn_file_actions_addclose
64   SRCS
65     posix_spawn_file_actions_addclose.cpp
66   HDRS
67     posix_spawn_file_actions_addclose.h
68   DEPENDS
69     .file_actions
70     libc.include.errno
71     libc.include.spawn
72     libc.src.__support.CPP.new
75 add_entrypoint_object(
76   posix_spawn
77   ALIAS
78   DEPENDS
79     .${LIBC_TARGET_OS}.posix_spawn