diff --git a/frameworks/native/BUILD.gn b/frameworks/native/BUILD.gn index 54f979cb72bf3d7abaa3eb575cbf0c652e5361ac..74a921a99eb8732b54c568e69f64f24f839e5093 100644 --- a/frameworks/native/BUILD.gn +++ b/frameworks/native/BUILD.gn @@ -25,6 +25,7 @@ idl_gen_interface("sensor_service_interface") { ohos_source_set("sensor_service_stub") { public_configs = [ ":sensor_private_config" ] + branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true