Fix test failures introduced by PR #113697 (#116941)
[llvm-project.git] / libc / src / setjmp / aarch64 / CMakeLists.txt
blobe0e7702c7c4b61967d86d138a075a22cc6ea0c94
1 if(LIBC_CONF_SETJMP_AARCH64_RESTORE_PLATFORM_REGISTER)
2   list(APPEND setjmp_config_options "-DLIBC_COPT_SETJMP_AARCH64_RESTORE_PLATFORM_REGISTER")
3 endif()
4 if(setjmp_config_options)
5   list(PREPEND setjmp_config_options "COMPILE_OPTIONS")
6 endif()
8 add_entrypoint_object(
9   setjmp
10   SRCS
11     setjmp.cpp
12   HDRS
13     ../setjmp_impl.h
14   DEPENDS
15     libc.hdr.types.jmp_buf
16   ${setjmp_config_options}
19 add_entrypoint_object(
20   longjmp
21   SRCS
22     longjmp.cpp
23   HDRS
24     ../longjmp.h
25   DEPENDS
26     libc.hdr.types.jmp_buf
27   ${setjmp_config_options}