aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2022-01-13 17:57:03 +0100
committerMike Pall <mike>2022-01-13 17:57:03 +0100
commitbe251d9149b386ca0d4b51106be14366c5dbdf14 (patch)
tree268d68b36287734dc67b7332bfe5e16d839e2808 /src
parent4ccaf348fb40488c76a78d4b385a313a987fd1ad (diff)
downloadluajit-be251d9149b386ca0d4b51106be14366c5dbdf14.tar.gz
luajit-be251d9149b386ca0d4b51106be14366c5dbdf14.tar.bz2
luajit-be251d9149b386ca0d4b51106be14366c5dbdf14.zip
OSX: Disable unreliable assertion for external frame unwinding.
Diffstat (limited to 'src')
-rw-r--r--src/lj_err.c3
1 files changed, 3 insertions, 0 deletions
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);
480/* Verify that external error handling actually has a chance to work. */ 480/* Verify that external error handling actually has a chance to work. */
481void lj_err_verify(void) 481void lj_err_verify(void)
482{ 482{
483#if !LJ_TARGET_OSX
484 /* Check disabled on MacOS due to brilliant software engineering at Apple. */
483 struct dwarf_eh_bases ehb; 485 struct dwarf_eh_bases ehb;
484 lj_assertX(_Unwind_Find_FDE((void *)lj_err_throw, &ehb), "broken build: external frame unwinding enabled, but missing -funwind-tables"); 486 lj_assertX(_Unwind_Find_FDE((void *)lj_err_throw, &ehb), "broken build: external frame unwinding enabled, but missing -funwind-tables");
487#endif
485 /* Check disabled, because of broken Fedora/ARM64. See #722. 488 /* Check disabled, because of broken Fedora/ARM64. See #722.
486 lj_assertX(_Unwind_Find_FDE((void *)_Unwind_RaiseException, &ehb), "broken build: external frame unwinding enabled, but system libraries have no unwind tables"); 489 lj_assertX(_Unwind_Find_FDE((void *)_Unwind_RaiseException, &ehb), "broken build: external frame unwinding enabled, but system libraries have no unwind tables");
487 */ 490 */