From 2689f32453eb891847d538a880c8adb6fbe2c5b5 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 14 Nov 2012 22:16:10 +0100 Subject: [PATCH] Prevent erroneous x64 builds with non-native exception handling. --- src/lj_arch.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lj_arch.h b/src/lj_arch.h index 25c2cff8..220f3df2 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h @@ -300,7 +300,11 @@ /* Check target-specific constraints. */ #ifndef _BUILDVM_H -#if LJ_TARGET_ARM +#if LJ_TARGET_X64 +#if __USING_SJLJ_EXCEPTIONS__ +#error "Need a C compiler with native exception handling on x64" +#endif +#elif LJ_TARGET_ARM #if defined(__ARMEB__) #error "No support for big-endian ARM" #endif