Integrate MinGW build with DWARF2 exception handling.
Only works with DWARF2-enabled GCC 4.x (not the default MinGW GCC). Fix fastcall symbol names for COFF assembler output. Add DWARF2 unwind info to COFF assembler output. Use COFF assembler mode for MinGW builds. Always enable the DWARF2 handler if compiled with GCC.
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
** EXT is mandatory on POSIX/x64 since the interpreter doesn't save r12/r13.
|
||||
*/
|
||||
|
||||
#if defined(__ELF__) || defined(__MACH__)
|
||||
#if defined(__GNUC__)
|
||||
#if LJ_TARGET_X86
|
||||
#ifdef LUAJIT_UNWIND_EXTERNAL
|
||||
#define LJ_UNWIND_EXT 1
|
||||
@@ -532,7 +532,7 @@ static void *err_unwind(lua_State *L, void *stopcf, int errcode)
|
||||
|
||||
/* -- External frame unwinding -------------------------------------------- */
|
||||
|
||||
#if defined(__ELF__) || defined(__MACH__)
|
||||
#if defined(__GNUC__)
|
||||
|
||||
#include <unwind.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user