From c35a013bf09918273a985fed10ebab86e96d59e7 Mon Sep 17 00:00:00 2001 From: Qihan Cai Date: Thu, 23 Jun 2022 00:14:57 +1000 Subject: [PATCH] update libffi target Change-Id: I726e88d78b517a36e566e498fd605a3eacd8d1cd --- cmake/modules/LibffiUtils.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/modules/LibffiUtils.cmake b/cmake/modules/LibffiUtils.cmake index 25192cb..c22e8ef 100644 --- a/cmake/modules/LibffiUtils.cmake +++ b/cmake/modules/LibffiUtils.cmake @@ -64,6 +64,8 @@ function(setup_libffi libffi_srcroot) # Set target based on arch. if(HAVE_64BIT AND ${llarch} STREQUAL "aarch64") set(TARGET AARCH64) + elseif(HAVE_64BIT AND ${llarch} STREQUAL "riscv64") + set(TARGET RISCV64) elseif(HAVE_64BIT) set(TARGET X86_64) else()