Browse Source

give proper error on unsupported JIT x64 for now (close #32)

Nicolas Cannasse 8 năm trước cách đây
mục cha
commit
2bdae6bb4f
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/main.c

+ 4 - 0
src/main.c

@@ -120,6 +120,10 @@ int main(int argc, pchar *argv[]) {
 		printf("HL/JIT %d.%d.%d (c)2015-2016 Haxe Foundation\n  Usage : hl [--debug <port>] <file>\n",HL_VERSION>>8,(HL_VERSION>>4)&15,HL_VERSION&15);
 		return 1;
 	}
+#	ifdef HL_64
+	fprintf(stderr,"HL/JIT is currently not supported when compiled to 64 bits, use make ARCH=32 to compile to 32 bits\n");
+	exit(1);
+#	endif
 	hl_global_init(&ctx);
 	hl_sys_init((void**)argv,argc);
 	ctx.code = load_code(file);