mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 05:53:26 +00:00
Don't use thread-safe exceptions on OSX. Complain to Apple, not me.
This commit is contained in:
parent
64dbe7d929
commit
0af502f438
@ -258,7 +258,12 @@ LJ_FUNCA int lj_err_unwind_dwarf(int version, _Unwind_Action actions,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if LJ_UNWIND_EXT
|
#if LJ_UNWIND_EXT
|
||||||
|
#if LJ_TARGET_OSX
|
||||||
|
/* Sorry, no thread safety for OSX. Complain to Apple, not me. */
|
||||||
|
static struct _Unwind_Exception static_uex;
|
||||||
|
#else
|
||||||
static __thread struct _Unwind_Exception static_uex;
|
static __thread struct _Unwind_Exception static_uex;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Raise DWARF2 exception. */
|
/* Raise DWARF2 exception. */
|
||||||
static void err_raise_ext(int errcode)
|
static void err_raise_ext(int errcode)
|
||||||
|
Loading…
Reference in New Issue
Block a user