diff --git a/BUILD.gn b/BUILD.gn index 5a506f68478cc87a4cb0d5beb46587cf8dd1ab6d..2fa2e7c147076f1ef66c4c4a3588f626d2165984 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -61,7 +61,9 @@ config("jsoncpp_public_config") { ohos_shared_library("jsoncpp") { visibility = [ "*" ] sources = get_target_outputs(":jsoncpp_install_action") - use_exceptions = true + if (is_standard_system) { + use_exceptions = true + } configs = [ ":jsoncpp_config" ] public_configs = [ ":jsoncpp_public_config" ] innerapi_tags = [ @@ -79,7 +81,9 @@ ohos_shared_library("jsoncpp") { ohos_static_library("jsoncpp_static") { sources = get_target_outputs(":jsoncpp_install_action") - use_exceptions = true + if (is_standard_system) { + use_exceptions = true + } configs = [ ":config_static", ":flag_config",