mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
PPC: Fix cross-endian builds.
This commit is contained in:
parent
8002871619
commit
dec4acca9a
@ -221,6 +221,11 @@ ifneq (,$(findstring LJ_TARGET_ARM64 ,$(TARGET_TESTARCH)))
|
|||||||
TARGET_LJARCH= arm64
|
TARGET_LJARCH= arm64
|
||||||
else
|
else
|
||||||
ifneq (,$(findstring LJ_TARGET_PPC ,$(TARGET_TESTARCH)))
|
ifneq (,$(findstring LJ_TARGET_PPC ,$(TARGET_TESTARCH)))
|
||||||
|
ifneq (,$(findstring LJ_LE 1,$(TARGET_TESTARCH)))
|
||||||
|
TARGET_ARCH= -DLJ_ARCH_ENDIAN=LUAJIT_LE
|
||||||
|
else
|
||||||
|
TARGET_ARCH= -DLJ_ARCH_ENDIAN=LUAJIT_BE
|
||||||
|
endif
|
||||||
TARGET_LJARCH= ppc
|
TARGET_LJARCH= ppc
|
||||||
else
|
else
|
||||||
ifneq (,$(findstring LJ_TARGET_MIPS ,$(TARGET_TESTARCH)))
|
ifneq (,$(findstring LJ_TARGET_MIPS ,$(TARGET_TESTARCH)))
|
||||||
|
@ -210,11 +210,13 @@
|
|||||||
|
|
||||||
#elif LUAJIT_TARGET == LUAJIT_ARCH_PPC
|
#elif LUAJIT_TARGET == LUAJIT_ARCH_PPC
|
||||||
|
|
||||||
|
#ifndef LJ_ARCH_ENDIAN
|
||||||
#if __BYTE_ORDER__ != __ORDER_BIG_ENDIAN__
|
#if __BYTE_ORDER__ != __ORDER_BIG_ENDIAN__
|
||||||
#define LJ_ARCH_ENDIAN LUAJIT_LE
|
#define LJ_ARCH_ENDIAN LUAJIT_LE
|
||||||
#else
|
#else
|
||||||
#define LJ_ARCH_ENDIAN LUAJIT_BE
|
#define LJ_ARCH_ENDIAN LUAJIT_BE
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if _LP64
|
#if _LP64
|
||||||
#define LJ_ARCH_BITS 64
|
#define LJ_ARCH_BITS 64
|
||||||
|
Loading…
Reference in New Issue
Block a user