From 04736de47f4fc9ed6b5548d62f48b16d2f40c5c7 Mon Sep 17 00:00:00 2001 From: liangxinyan123 Date: Tue, 18 Feb 2025 09:31:58 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20linux=20arm64=E7=BC=96=E8=AF=91sdk?= =?UTF-8?q?=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liangxinyan123 --- base/BUILD.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/BUILD.gn b/base/BUILD.gn index d53a863..a7360cf 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -209,7 +209,7 @@ ohos_shared_library("utils") { ########## modules for `c_utils` in rust ########## # rust compiler is not supportted on mac -if (host_os == "linux" && !is_arkui_x) { +if (host_os == "linux" && host_cpu != "arm64" && !is_arkui_x) { import("//build/templates/rust/rust_cxx.gni") # used for templates rust_cxx() rust_cxx("cxx_rust_gen") { sources = [ @@ -242,7 +242,7 @@ if (host_os == "linux" && !is_arkui_x) { } } -if (!is_arkui_x) { +if (!is_arkui_x && !(host_os == "linux" && host_cpu == "arm64")) { ohos_rust_shared_library("utils_rust") { if (host_os == "linux") { sources = [ -- Gitee