mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 04:49:04 +08:00
Add initial LoongArch support (#32932)
This commit is contained in:
parent
e91d6617db
commit
fd6f4857d6
@ -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.")
|
||||
|
6
triplets/community/loongarch32-linux-release.cmake
Normal file
6
triplets/community/loongarch32-linux-release.cmake
Normal 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)
|
5
triplets/community/loongarch32-linux.cmake
Normal file
5
triplets/community/loongarch32-linux.cmake
Normal 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)
|
6
triplets/community/loongarch64-linux-release.cmake
Normal file
6
triplets/community/loongarch64-linux-release.cmake
Normal 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)
|
5
triplets/community/loongarch64-linux.cmake
Normal file
5
triplets/community/loongarch64-linux.cmake
Normal 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)
|
Loading…
Reference in New Issue
Block a user