mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
x64: Fix DynASM defines.
This commit is contained in:
parent
e08914988c
commit
0528bb7d02
@ -362,6 +362,9 @@ DASM_XFLAGS=
|
|||||||
DASM_AFLAGS=
|
DASM_AFLAGS=
|
||||||
DASM_ARCH= $(TARGET_LJARCH)
|
DASM_ARCH= $(TARGET_LJARCH)
|
||||||
|
|
||||||
|
ifneq (,$(findstring LJ_ARCH_BITS 64,$(TARGET_TESTARCH)))
|
||||||
|
DASM_AFLAGS+= -D P64
|
||||||
|
endif
|
||||||
ifneq (,$(findstring LJ_HASJIT 1,$(TARGET_TESTARCH)))
|
ifneq (,$(findstring LJ_HASJIT 1,$(TARGET_TESTARCH)))
|
||||||
DASM_AFLAGS+= -D JIT
|
DASM_AFLAGS+= -D JIT
|
||||||
endif
|
endif
|
||||||
@ -387,7 +390,6 @@ ifeq (x86,$(TARGET_LJARCH))
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
ifeq (x64,$(TARGET_LJARCH))
|
ifeq (x64,$(TARGET_LJARCH))
|
||||||
DASM_AFLAGS+= -D X64
|
|
||||||
DASM_ARCH= x86
|
DASM_ARCH= x86
|
||||||
else
|
else
|
||||||
ifeq (arm,$(TARGET_LJARCH))
|
ifeq (arm,$(TARGET_LJARCH))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|// Bytecode interpreter, fast functions and helper functions.
|
|// Bytecode interpreter, fast functions and helper functions.
|
||||||
|// Copyright (C) 2005-2012 Mike Pall. See Copyright Notice in luajit.h
|
|// Copyright (C) 2005-2012 Mike Pall. See Copyright Notice in luajit.h
|
||||||
|
|
|
|
||||||
|.if X64
|
|.if P64
|
||||||
|.arch x64
|
|.arch x64
|
||||||
|.else
|
|.else
|
||||||
|.arch x86
|
|.arch x86
|
||||||
@ -16,7 +16,8 @@
|
|||||||
|
|
|
|
||||||
|//-----------------------------------------------------------------------
|
|//-----------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
|.if X64
|
|.if P64
|
||||||
|
|.define X64, 1
|
||||||
|.define SSE, 1
|
|.define SSE, 1
|
||||||
|.if WIN
|
|.if WIN
|
||||||
|.define X64WIN, 1
|
|.define X64WIN, 1
|
||||||
|
Loading…
Reference in New Issue
Block a user