Skip to content

Commit e214ed9

Browse files
[libc][arm] move setjmp+longjmp to fullbuild-only entrypoints (#96708)
The opaque type jmp_buf should only be tested in fullbuild mode.
1 parent 4f80f36 commit e214ed9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

libc/config/linux/arm/entrypoints.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ set(TARGET_LIBC_ENTRYPOINTS
2020
# errno.h entrypoints
2121
libc.src.errno.errno
2222

23-
# setjmp.h entrypoints
24-
libc.src.setjmp.longjmp
25-
libc.src.setjmp.setjmp
26-
2723
# string.h entrypoints
2824
libc.src.string.bcmp
2925
libc.src.string.bcopy
@@ -185,6 +181,14 @@ set(TARGET_LIBC_ENTRYPOINTS
185181

186182
)
187183

184+
if(LLVM_LIBC_FULL_BUILD)
185+
list(APPEND TARGET_LIBC_ENTRYPOINTS
186+
# setjmp.h entrypoints
187+
libc.src.setjmp.longjmp
188+
libc.src.setjmp.setjmp
189+
)
190+
endif()
191+
188192
set(TARGET_LIBM_ENTRYPOINTS
189193
# fenv.h entrypoints
190194
libc.src.fenv.feclearexcept

0 commit comments

Comments
 (0)