]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
x64: Fix DynASM defines.
authorMike Pall <mike>
Tue, 12 Jun 2012 01:50:22 +0000 (03:50 +0200)
committerMike Pall <mike>
Tue, 12 Jun 2012 01:50:22 +0000 (03:50 +0200)
src/Makefile
src/vm_x86.dasc

index 991a02f0365942082673b3722f768c3c7befc321..58dcdc01e3c828c6d86db0ca0066ced5afc135b1 100644 (file)
@@ -362,6 +362,9 @@ DASM_XFLAGS=
 DASM_AFLAGS=
 DASM_ARCH= $(TARGET_LJARCH)
 
+ifneq (,$(findstring LJ_ARCH_BITS 64,$(TARGET_TESTARCH)))
+  DASM_AFLAGS+= -D P64
+endif
 ifneq (,$(findstring LJ_HASJIT 1,$(TARGET_TESTARCH)))
   DASM_AFLAGS+= -D JIT
 endif
@@ -387,7 +390,6 @@ ifeq (x86,$(TARGET_LJARCH))
   endif
 else
 ifeq (x64,$(TARGET_LJARCH))
-  DASM_AFLAGS+= -D X64
   DASM_ARCH= x86
 else
 ifeq (arm,$(TARGET_LJARCH))
index 3520510a29e3afd6b484235a0c57f3e6fb00a25b..44199606c6907cfe21181d42119b6fab6da90b75 100644 (file)
@@ -2,7 +2,7 @@
 |// Bytecode interpreter, fast functions and helper functions.
 |// Copyright (C) 2005-2012 Mike Pall. See Copyright Notice in luajit.h
 |
-|.if X64
+|.if P64
 |.arch x64
 |.else
 |.arch x86
@@ -16,7 +16,8 @@
 |
 |//-----------------------------------------------------------------------
 |
-|.if X64
+|.if P64
+|.define X64, 1
 |.define SSE, 1
 |.if WIN
 |.define X64WIN, 1