Add loongarch64 support (#1614)

* add loongarch64 support
This commit is contained in:
fuowang 2022-04-12 11:33:40 +08:00 committed by GitHub
parent 4dbdfb6972
commit 40681328ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1079,7 +1079,8 @@ enum ZT_Architecture
ZT_ARCHITECTURE_DOTNET_CLR = 13, ZT_ARCHITECTURE_DOTNET_CLR = 13,
ZT_ARCHITECTURE_JAVA_JVM = 14, ZT_ARCHITECTURE_JAVA_JVM = 14,
ZT_ARCHITECTURE_WEB = 15, ZT_ARCHITECTURE_WEB = 15,
ZT_ARCHITECTURE_S390X = 16 ZT_ARCHITECTURE_S390X = 16,
ZT_ARCHITECTURE_LOONGARCH64 = 17
}; };
/** /**

View File

@ -252,6 +252,10 @@ endif
ifeq ($(CC_MACH),riscv64) ifeq ($(CC_MACH),riscv64)
ZT_ARCHITECTURE=0 ZT_ARCHITECTURE=0
endif endif
ifeq ($(CC_MACH),loongarch64)
ZT_ARCHITECTURE=17
override DEFS+=-DZT_NO_TYPE_PUNNING
endif
# Fail if system architecture could not be determined # Fail if system architecture could not be determined
ifeq ($(ZT_ARCHITECTURE),999) ifeq ($(ZT_ARCHITECTURE),999)