Skip to content

Commit 2304226

Browse files
fix build again
1 parent 3ef0ab8 commit 2304226

File tree

2 files changed

+32
-29
lines changed

2 files changed

+32
-29
lines changed

libc/src/setjmp/CMakeLists.txt

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,21 @@ add_entrypoint_object(
2626
.${LIBC_TARGET_ARCHITECTURE}.longjmp
2727
)
2828

29-
add_entrypoint_object(
30-
siglongjmp
31-
SRCS
32-
siglongjmp.cpp
33-
HDRS
34-
siglongjmp.h
35-
DEPENDS
36-
.longjmp
37-
)
29+
if (TARGET libc.src.setjmp.sigsetjmp_epilogue)
30+
add_entrypoint_object(
31+
siglongjmp
32+
SRCS
33+
siglongjmp.cpp
34+
HDRS
35+
siglongjmp.h
36+
DEPENDS
37+
.longjmp
38+
)
3839

39-
add_entrypoint_object(
40-
sigsetjmp
41-
ALIAS
42-
DEPENDS
43-
.${LIBC_TARGET_ARCHITECTURE}.sigsetjmp
44-
)
40+
add_entrypoint_object(
41+
sigsetjmp
42+
ALIAS
43+
DEPENDS
44+
.${LIBC_TARGET_ARCHITECTURE}.sigsetjmp
45+
)
46+
endif()

libc/src/setjmp/x86_64/CMakeLists.txt

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@ add_entrypoint_object(
88
libc.hdr.offsetof_macros
99
libc.hdr.types.jmp_buf
1010
)
11-
12-
add_entrypoint_object(
13-
sigsetjmp
14-
SRCS
15-
sigsetjmp.cpp
16-
HDRS
17-
../sigsetjmp.h
18-
DEPENDS
19-
libc.hdr.types.jmp_buf
20-
libc.hdr.types.sigset_t
21-
libc.hdr.offsetof_macros
22-
libc.src.setjmp.sigsetjmp_epilogue
23-
libc.src.setjmp.setjmp
24-
)
11+
if (TARGET libc.src.setjmp.sigsetjmp_epilogue)
12+
add_entrypoint_object(
13+
sigsetjmp
14+
SRCS
15+
sigsetjmp.cpp
16+
HDRS
17+
../sigsetjmp.h
18+
DEPENDS
19+
libc.hdr.types.jmp_buf
20+
libc.hdr.types.sigset_t
21+
libc.hdr.offsetof_macros
22+
libc.src.setjmp.sigsetjmp_epilogue
23+
libc.src.setjmp.setjmp
24+
)
25+
endif()
2526

2627
add_entrypoint_object(
2728
longjmp

0 commit comments

Comments
 (0)