From be251d9149b386ca0d4b51106be14366c5dbdf14 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Thu, 13 Jan 2022 17:57:03 +0100 Subject: [PATCH] OSX: Disable unreliable assertion for external frame unwinding. --- src/lj_err.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lj_err.c b/src/lj_err.c index fda4a59c..c0be08e4 100644 --- a/src/lj_err.c +++ b/src/lj_err.c @@ -480,8 +480,11 @@ extern const void *_Unwind_Find_FDE(void *pc, struct dwarf_eh_bases *bases); /* Verify that external error handling actually has a chance to work. */ void lj_err_verify(void) { +#if !LJ_TARGET_OSX + /* Check disabled on MacOS due to brilliant software engineering at Apple. */ struct dwarf_eh_bases ehb; lj_assertX(_Unwind_Find_FDE((void *)lj_err_throw, &ehb), "broken build: external frame unwinding enabled, but missing -funwind-tables"); +#endif /* Check disabled, because of broken Fedora/ARM64. See #722. lj_assertX(_Unwind_Find_FDE((void *)_Unwind_RaiseException, &ehb), "broken build: external frame unwinding enabled, but system libraries have no unwind tables"); */