From 0f440a6c4e8c693345362c1295d0781fb4d807f1 Mon Sep 17 00:00:00 2001 From: fangyunzhong Date: Tue, 19 Dec 2023 14:59:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Estandard=E5=BD=A2=E6=80=81=E5=8E=BB?= =?UTF-8?q?=E9=99=A4use=5Fexceptions=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fangyunzhong --- BUILD.gn | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 5a506f6..2fa2e7c 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", -- Gitee