Make possible riscv64 to build the project

This commit is contained in:
redtide 2024-02-23 05:57:10 +01:00
parent d7b9e524ff
commit 3588c3f5bc
No known key found for this signature in database

View file

@ -45,6 +45,10 @@ if(NOT VST3_PACKAGE_ARCHITECTURE)
set(VST3_PACKAGE_ARCHITECTURE "${VST3_SYSTEM_PROCESSOR}") set(VST3_PACKAGE_ARCHITECTURE "${VST3_SYSTEM_PROCESSOR}")
elseif(VST3_SYSTEM_PROCESSOR MATCHES "^(aarch64)$") elseif(VST3_SYSTEM_PROCESSOR MATCHES "^(aarch64)$")
set(VST3_PACKAGE_ARCHITECTURE "aarch64") set(VST3_PACKAGE_ARCHITECTURE "aarch64")
# We have no much ways to support RISC without machines to test,
# but at least don't deny the possibility to build
elseif(VST3_SYSTEM_PROCESSOR MATCHES "^(riscv64)$")
set(VST3_PACKAGE_ARCHITECTURE "riscv64")
else() else()
message(FATAL_ERROR "We don't know this architecture for VST3: ${VST3_SYSTEM_PROCESSOR}.") message(FATAL_ERROR "We don't know this architecture for VST3: ${VST3_SYSTEM_PROCESSOR}.")
endif() endif()