Przeglądaj źródła

Prevent erroneous x64 builds with non-native exception handling.

Mike Pall 13 lat temu
rodzic
commit
2689f32453
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      src/lj_arch.h

+ 5 - 1
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