diff options
author | Mike Pall <mike> | 2010-01-22 01:56:49 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-01-22 01:56:49 +0100 |
commit | 43f1e134709b06be7091ad8f6cfaaaa78adec886 (patch) | |
tree | 38d5819e5a6406c66cc2cf91bb5465d552d1c37b /src/lj_err.c | |
parent | c56811bb7acf40174ac9b63e69f58b42adf85bd7 (diff) | |
download | luajit-43f1e134709b06be7091ad8f6cfaaaa78adec886.tar.gz luajit-43f1e134709b06be7091ad8f6cfaaaa78adec886.tar.bz2 luajit-43f1e134709b06be7091ad8f6cfaaaa78adec886.zip |
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.
Diffstat (limited to 'src/lj_err.c')
-rw-r--r-- | src/lj_err.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_err.c b/src/lj_err.c index 5ec81302..56ca0c37 100644 --- a/src/lj_err.c +++ b/src/lj_err.c | |||
@@ -63,7 +63,7 @@ | |||
63 | ** EXT is mandatory on POSIX/x64 since the interpreter doesn't save r12/r13. | 63 | ** EXT is mandatory on POSIX/x64 since the interpreter doesn't save r12/r13. |
64 | */ | 64 | */ |
65 | 65 | ||
66 | #if defined(__ELF__) || defined(__MACH__) | 66 | #if defined(__GNUC__) |
67 | #if LJ_TARGET_X86 | 67 | #if LJ_TARGET_X86 |
68 | #ifdef LUAJIT_UNWIND_EXTERNAL | 68 | #ifdef LUAJIT_UNWIND_EXTERNAL |
69 | #define LJ_UNWIND_EXT 1 | 69 | #define LJ_UNWIND_EXT 1 |
@@ -532,7 +532,7 @@ static void *err_unwind(lua_State *L, void *stopcf, int errcode) | |||
532 | 532 | ||
533 | /* -- External frame unwinding -------------------------------------------- */ | 533 | /* -- External frame unwinding -------------------------------------------- */ |
534 | 534 | ||
535 | #if defined(__ELF__) || defined(__MACH__) | 535 | #if defined(__GNUC__) |
536 | 536 | ||
537 | #include <unwind.h> | 537 | #include <unwind.h> |
538 | 538 | ||