summaryrefslogtreecommitdiff
path: root/src/buildvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildvm.c')
-rw-r--r--src/buildvm.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/buildvm.c b/src/buildvm.c
index 817d4bc4..e6eeabd2 100644
--- a/src/buildvm.c
+++ b/src/buildvm.c
@@ -14,22 +14,19 @@
14** It's a one-shot tool -- any effort fixing this would be wasted. 14** It's a one-shot tool -- any effort fixing this would be wasted.
15*/ 15*/
16 16
17#include "lua.h"
18#include "luajit.h"
19
20#ifdef LUA_USE_WIN 17#ifdef LUA_USE_WIN
21#include <fcntl.h> 18#include <fcntl.h>
22#include <io.h> 19#include <io.h>
23#endif 20#endif
24 21
22#include "buildvm.h"
25#include "lj_obj.h" 23#include "lj_obj.h"
26#include "lj_gc.h" 24#include "lj_gc.h"
27#include "lj_bc.h" 25#include "lj_bc.h"
28#include "lj_ir.h" 26#include "lj_ir.h"
29#include "lj_frame.h" 27#include "lj_frame.h"
30#include "lj_dispatch.h" 28#include "lj_dispatch.h"
31 29#include "luajit.h"
32#include "buildvm.h"
33 30
34/* ------------------------------------------------------------------------ */ 31/* ------------------------------------------------------------------------ */
35 32
@@ -422,6 +419,12 @@ int main(int argc, char **argv)
422 BuildCtx *ctx = &ctx_; 419 BuildCtx *ctx = &ctx_;
423 int status, binmode; 420 int status, binmode;
424 421
422 if (sizeof(void *) != 4*LJ_32+8*LJ_64) {
423 fprintf(stderr,"Error: pointer size mismatch in cross-build.\n");
424 fprintf(stderr,"Try: make CC=\"gcc -m32\" CROSS=... TARGET=...\n\n");
425 return 1;
426 }
427
425 UNUSED(argc); 428 UNUSED(argc);
426 parseargs(ctx, argv); 429 parseargs(ctx, argv);
427 430