diff --git a/interfaces/kits/napi/graphic/color_manager/BUILD.gn b/interfaces/kits/napi/graphic/color_manager/BUILD.gn index c79a78c3b8..05d206553f 100644 --- a/interfaces/kits/napi/graphic/color_manager/BUILD.gn +++ b/interfaces/kits/napi/graphic/color_manager/BUILD.gn @@ -35,6 +35,7 @@ config("color_space_object_convertor_public_config") { if (current_os == "ohos") { ohos_shared_library("color_space_object_convertor") { + branch_protector_ret = "pac_ret" public_configs = [ ":color_space_object_convertor_public_config" ] sources = [ "color_space_object_convertor/color_space_object_convertor.cpp", diff --git a/utils/color_manager/BUILD.gn b/utils/color_manager/BUILD.gn index d06677d240..7853b2682a 100755 --- a/utils/color_manager/BUILD.gn +++ b/utils/color_manager/BUILD.gn @@ -75,6 +75,7 @@ config("export") { if (current_os == "ohos") { ohos_shared_library("color_manager") { + branch_protector_ret = "pac_ret" deps = [ ":color_manager_source" ] public_external_deps = [ "bounds_checking_function:libsec_shared" ] public_configs = [ ":export" ]