From c1550cf608bc90abc10d8d617c3c30ca1d685190 Mon Sep 17 00:00:00 2001 From: runsys <35724927+runsys@users.noreply.github.com> Date: Sun, 18 May 2025 17:03:47 +0800 Subject: [PATCH] windows mingw64 llvm 20 support patch 1 --- ssa/eh.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ssa/eh.go b/ssa/eh.go index a0c35c46..d86f25f7 100644 --- a/ssa/eh.go +++ b/ssa/eh.go @@ -16,7 +16,20 @@ package ssa -// #include +/* +#include +#ifdef WIN32 +#if defined(__MINGW64__) && !defined(_UCRT) +typedef intptr_t sigjmp_buf[5]; +#define sigsetjmp(x,y) __builtin_setjmp(x) +#define siglongjmp __builtin_longjmp +#else +#define sigjmp_buf jmp_buf +#define sigsetjmp(x,y) setjmp(x) +#define siglongjmp longjmp +#endif +#endif +*/ import "C" import (