aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2012-11-14 22:16:10 +0100
committerMike Pall <mike>2012-11-14 22:16:10 +0100
commit2689f32453eb891847d538a880c8adb6fbe2c5b5 (patch)
tree3909c790d60d6640c46a40f498e2e3676d44210b /src
parentc77a9e4c655ea4732950a8fb7c33680350857b34 (diff)
downloadluajit-2689f32453eb891847d538a880c8adb6fbe2c5b5.tar.gz
luajit-2689f32453eb891847d538a880c8adb6fbe2c5b5.tar.bz2
luajit-2689f32453eb891847d538a880c8adb6fbe2c5b5.zip
Prevent erroneous x64 builds with non-native exception handling.
Diffstat (limited to 'src')
-rw-r--r--src/lj_arch.h6
1 files changed, 5 insertions, 1 deletions
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 @@
300 300
301/* Check target-specific constraints. */ 301/* Check target-specific constraints. */
302#ifndef _BUILDVM_H 302#ifndef _BUILDVM_H
303#if LJ_TARGET_ARM 303#if LJ_TARGET_X64
304#if __USING_SJLJ_EXCEPTIONS__
305#error "Need a C compiler with native exception handling on x64"
306#endif
307#elif LJ_TARGET_ARM
304#if defined(__ARMEB__) 308#if defined(__ARMEB__)
305#error "No support for big-endian ARM" 309#error "No support for big-endian ARM"
306#endif 310#endif