From 70b5c6db456370a96a987107d3c96b6caf427d04 Mon Sep 17 00:00:00 2001 From: leiguangyu Date: Wed, 11 Sep 2024 15:10:14 +0800 Subject: [PATCH] add pac protector Change-Id: I47ae3548cec113e77f539823b21c074fe50021f9 Signed-off-by: leiguangyu --- interfaces/innerkits/native/BUILD.gn | 2 ++ interfaces/kits/js/napi/BUILD.gn | 1 + 2 files changed, 3 insertions(+) diff --git a/interfaces/innerkits/native/BUILD.gn b/interfaces/innerkits/native/BUILD.gn index 213e82e..83a7da8 100644 --- a/interfaces/innerkits/native/BUILD.gn +++ b/interfaces/innerkits/native/BUILD.gn @@ -24,6 +24,7 @@ config("hiperf_client_config") { } ohos_shared_library("hiperf_client") { + branch_protector_ret = "pac_ret" install_enable = true public_configs = [ ":hiperf_client_config" ] sources = [ "src/hiperf_client.cpp" ] @@ -43,6 +44,7 @@ ohos_shared_library("hiperf_client") { } ohos_static_library("hiperf_client_static") { + branch_protector_ret = "pac_ret" public_configs = [ ":hiperf_client_config" ] sources = [ "src/hiperf_client.cpp" ] defines = [] diff --git a/interfaces/kits/js/napi/BUILD.gn b/interfaces/kits/js/napi/BUILD.gn index 2fb5503..b72f45f 100644 --- a/interfaces/kits/js/napi/BUILD.gn +++ b/interfaces/kits/js/napi/BUILD.gn @@ -23,6 +23,7 @@ config("hiperf_client_napi_config") { } ohos_shared_library("hiperf_client_napi") { + branch_protector_ret = "pac_ret" install_enable = true configs = [ ":hiperf_client_napi_config" ]