[libc-commits] [libc] Reland "[libc] build fix for sigsetjmp (#137047)" (PR #137214)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Thu Apr 24 15:46:56 PDT 2025
================
@@ -49,9 +53,22 @@ typedef struct {
#endif
#else
#error "__jmp_buf not available for your target architecture."
+#endif
+ // TODO: implement sigjmp_buf related functions for other architectures
+ // Issue: https://github.com/llvm/llvm-project/issues/136358
+#if defined(__i386__) || defined(__x86_64__)
----------------
petrhosek wrote:
Rather than conditionally enabling this based on architecture, we should do it based on the standards enabled in `hdrgen`. Specifically, this should only be enabled for `POSIX` and should never be included elsewhere regardless of the architecture.
https://github.com/llvm/llvm-project/pull/137214
More information about the libc-commits
mailing list