From 44d9eb539bce0c405e10bff1a8cfc7b557240bb8 Mon Sep 17 00:00:00 2001 From: ljy9810 Date: Tue, 3 Jun 2025 21:26:22 +0800 Subject: [PATCH] =?UTF-8?q?libc=E9=83=A8=E4=BB=B6=E5=8C=96=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ljy9810 --- BUILD.gn | 1 + bundle.json | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 657ecef0..074b248c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -31,6 +31,7 @@ ohos_cargo_crate("lib") { ] build_root = "build.rs" build_sources = [ "build.rs" ] + module_output_extension = ".rlib" part_name = "rust_libc" subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json index c3ab2689..88d732ce 100644 --- a/bundle.json +++ b/bundle.json @@ -19,10 +19,13 @@ "components": [] }, "build": { - "sub_component": [], + "sub_component": [ + "//third_party/rust/crates/libc:lib" + ], "inner_kits": [ { - "name": "//third_party/rust/crates/libc:lib" + "name": "//third_party/rust/crates/libc:lib", + "type": "rlib" } ], "test": [] -- Gitee