diff --git a/BUILD.gn b/BUILD.gn index 0699a60405e19ab8c026b4403c3a22edcd99de00..4cb68e82e1686f70baf29f6e88d1ba5691258f10 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -45,6 +45,7 @@ if (defined(ohos_lite)) { defines = [ "CJSON_NESTING_LIMIT=(128)" ] } ohos_static_library("cjson_static") { + branch_protector_ret = "pac_ret" sources = [ "cJSON.c" ] public_configs = [ ":cJSON_config" ] part_name = "cJSON"