diff --git a/ylong_runtime/BUILD.gn b/ylong_runtime/BUILD.gn index a96ead4403719d5c6abb8b1cfca6faddbcab642f..9d6e9fdfe7d5465cb324035c197a78e7c61c6a14 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})",