summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMoody Liu <mooodyhunter@outlook.com>2022-06-27 14:24:27 +0100
committerMoody Liu <mooodyhunter@outlook.com>2022-08-08 12:03:44 +0000
commitd4fee1a89ebe0dc7182a2b7a2cfa672ac392b4a2 (patch)
tree941645b9caf7561648270288a8de6e67c64f20d8 /cmake
parentc388f376ac0ccff7b92a55eefb7d0beba45650c5 (diff)
downloadqtwebengine-d4fee1a89ebe0dc7182a2b7a2cfa672ac392b4a2.tar.gz
add riscv64 support in cmake/Functions.cmake
do note that chromium itself still needs additional patches to compile on RISC-V 64, but on the Qt side, this is enough. Change-Id: I3b214fc5f4a286a665c85556892e553258b52cf5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Functions.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake
index f92dfc48d..3055252a0 100644
--- a/cmake/Functions.cmake
+++ b/cmake/Functions.cmake
@@ -627,6 +627,8 @@ function(get_gn_arch result arch)
set(${result} "mipsel" PARENT_SCOPE)
elseif(arch STREQUAL "mipsel64")
set(${result} "mips64el" PARENT_SCOPE)
+ elseif(arch STREQUAL "riscv64")
+ set(${result} "riscv64" PARENT_SCOPE)
else()
message(DEBUG "Unsupported architecture: ${arch}")
endif()
@@ -646,6 +648,8 @@ function(get_v8_arch result targetArch hostArch)
set(${result} "mipsel" PARENT_SCOPE)
elseif(hostArch STREQUAL "mipsel64")
set(${result} "mipsel" PARENT_SCOPE)
+ elseif(hostArch STREQUAL "riscv64")
+ set(${result} "riscv64" PARENT_SCOPE)
else()
message(DEBUG "Unsupported architecture: ${hostArch}")
endif()