diff --git a/cmake/QtBaseConfigureTests.cmake b/cmake/QtBaseConfigureTests.cmake
index e337a431..3244922e 100644
--- a/cmake/QtBaseConfigureTests.cmake
+++ b/cmake/QtBaseConfigureTests.cmake
@@ -77,7 +76,8 @@ function(qt_run_config_test_architecture)
             string(SUBSTRING "${_line}" ${_pos} -1 _build_abi)
         endif()
     endforeach()
-
+    set(_architecture "riscv64")
+    set(_build_abi "riscv64-little_endian-lp64")
     if (NOT _architecture OR NOT _build_abi)
         list(SUBLIST _arch_lines 0 5 arch_lines_fewer)
         list(JOIN arch_lines_fewer "\n" arch_lines_output)
