From 6fa945ed9442d816bfed7625877c107ef7023d39 Mon Sep 17 00:00:00 2001 From: zhaipeizhe Date: Wed, 6 Nov 2024 21:54:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E5=85=B3=E9=97=ADrust?= =?UTF-8?q?=E6=A0=88=E4=BF=9D=E6=8A=A4=E9=80=89=E9=A1=B9=E8=A7=A3=E5=86=B3?= =?UTF-8?q?rom=20size=E5=9B=A0=E4=B8=BA=E6=A1=86=E6=9E=B6=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E5=BC=80=E5=90=AFrust=E6=A0=88=E4=BF=9D=E6=8A=A4?= =?UTF-8?q?=E5=AF=BC=E8=87=B4rom=E5=A2=9E=E5=A4=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaipeizhe Change-Id: I648c5ef3107005854ed0d57d39fe2960c977dac3 --- ylong_runtime/BUILD.gn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ylong_runtime/BUILD.gn b/ylong_runtime/BUILD.gn index a96ead4..9d6e9fd 100644 --- a/ylong_runtime/BUILD.gn +++ b/ylong_runtime/BUILD.gn @@ -13,6 +13,10 @@ import("//build/ohos.gni") +config("libruntime_nostack_protect_config") { + rustflags = [ "-Zstack-protector=none" ] +} + ohos_rust_shared_library("ylong_runtime") { part_name = "ylong_runtime" subsystem_name = "commonlibrary" @@ -31,6 +35,9 @@ ohos_rust_shared_library("ylong_runtime") { ] sources = [ "src/lib.rs" ] + + configs = [ ":libruntime_nostack_protect_config" ] + deps = [ "../ylong_io:ylong_io", "../ylong_runtime_macros:ylong_runtime_macros(${host_toolchain})", -- Gitee