diff --git a/config/component/cJSON/BUILD.gn b/config/component/cJSON/BUILD.gn index e0f8e6c76b4bf2162fb7c48c947bab17203df086..dfab4fc5c5feb5324b1498510fc920926e84b080 100755 --- a/config/component/cJSON/BUILD.gn +++ b/config/component/cJSON/BUILD.gn @@ -19,6 +19,13 @@ import("//build/lite/ndk/ndk.gni") config("cjson_config") { include_dirs = [ "//third_party/cJSON" ] ldflags = [ "-lm" ] + defines = [ "CJSON_NESTING_LIMIT=(128)" ] + if (board_toolchain_type == "iccarm") { + cflags = [ + "--diag_suppress", + "Pa084", + ] + } } cjson_sources = [