mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:19:00 +08:00
Add initial risc-v support (#29593)
This commit is contained in:
parent
e83c4a9f25
commit
5c98346399
@ -322,6 +322,10 @@ else()
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH arm)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|ARM64)$")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH arm64)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "riscv32")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH riscv32)
|
||||
elseif(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "riscv64")
|
||||
set(Z_VCPKG_TARGET_TRIPLET_ARCH riscv64)
|
||||
else()
|
||||
if(Z_VCPKG_CMAKE_IN_TRY_COMPILE)
|
||||
message(STATUS "Unable to determine target architecture, continuing without vcpkg.")
|
||||
|
6
triplets/community/riscv32-linux-release.cmake
Normal file
6
triplets/community/riscv32-linux-release.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
set(VCPKG_TARGET_ARCHITECTURE riscv32)
|
||||
set(VCPKG_CRT_LINKAGE dynamic)
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
|
||||
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
|
||||
set(VCPKG_BUILD_TYPE release)
|
5
triplets/community/riscv32-linux.cmake
Normal file
5
triplets/community/riscv32-linux.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
set(VCPKG_TARGET_ARCHITECTURE riscv32)
|
||||
set(VCPKG_CRT_LINKAGE dynamic)
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
|
||||
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
|
6
triplets/community/riscv64-linux-release.cmake
Normal file
6
triplets/community/riscv64-linux-release.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
set(VCPKG_TARGET_ARCHITECTURE riscv64)
|
||||
set(VCPKG_CRT_LINKAGE dynamic)
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
|
||||
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
|
||||
set(VCPKG_BUILD_TYPE release)
|
5
triplets/community/riscv64-linux.cmake
Normal file
5
triplets/community/riscv64-linux.cmake
Normal file
@ -0,0 +1,5 @@
|
||||
set(VCPKG_TARGET_ARCHITECTURE riscv64)
|
||||
set(VCPKG_CRT_LINKAGE dynamic)
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
||||
|
||||
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
|
Loading…
Reference in New Issue
Block a user