add support for loongarch64 (#851)

This commit is contained in:
Wu Xiaotian
2022-04-18 15:12:30 +08:00
committed by GitHub
parent 047868e359
commit 6ea9991d84
17 changed files with 340 additions and 17 deletions

View File

@ -119,6 +119,9 @@ elseif(${ARCHITECTURE} STREQUAL "aarch64")
set(MARCH_CFLAGS "-march=armv8-a+crc" )
set(MTUNE_CFLAGS "-mtune=generic" )
set(ARCH_LDFLAGS "-latomic")
elseif(${ARCHITECTURE} STREQUAL "loongarch64")
set(MARCH_CFLAGS "-march=la464" )
set(MTUNE_CFLAGS "-mabi=lp64d" )
else()
message(FATAL_ERROR "UNSUPPORT BUILD ARCH: ${ARCHITECTURE}")
endif()