Add initial LoongArch support (#32932)

This commit is contained in:
Haowu Ge 2023-08-24 02:53:24 +08:00 committed by GitHub
parent e91d6617db
commit fd6f4857d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 0 deletions

View File

@ -327,6 +327,10 @@ else()
set(Z_VCPKG_TARGET_TRIPLET_ARCH riscv32)
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "riscv64")
set(Z_VCPKG_TARGET_TRIPLET_ARCH riscv64)
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "loongarch32")
set(Z_VCPKG_TARGET_TRIPLET_ARCH loongarch32)
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "loongarch64")
set(Z_VCPKG_TARGET_TRIPLET_ARCH loongarch64)
else()
if(Z_VCPKG_CMAKE_IN_TRY_COMPILE)
message(STATUS "Unable to determine target architecture, continuing without vcpkg.")

View File

@ -0,0 +1,6 @@
set(VCPKG_TARGET_ARCHITECTURE loongarch32)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_BUILD_TYPE release)

View File

@ -0,0 +1,5 @@
set(VCPKG_TARGET_ARCHITECTURE loongarch32)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)

View File

@ -0,0 +1,6 @@
set(VCPKG_TARGET_ARCHITECTURE loongarch64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_BUILD_TYPE release)

View File

@ -0,0 +1,5 @@
set(VCPKG_TARGET_ARCHITECTURE loongarch64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)