From 5448c9addb41ac653191c4763d7d3fed5b11a0a9 Mon Sep 17 00:00:00 2001 From: suwenxiang Date: Fri, 9 Sep 2022 16:38:06 +0800 Subject: [PATCH] fixed 25b9d76 from https://gitee.com/suwenxiang12/third_party_cJSON/pulls/39 Description: Fix undefined board_chaintool_type resulting in compilation error IssueNo: https://gitee.com/openharmony/third_party_cJSON/issues/I5ODQ6 Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: suwenxiang --- BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index d8804e5..c59ca01 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -21,7 +21,7 @@ if (defined(ohos_lite)) { "cJSON_Utils.c", ] - if (board_chaintool_type == "iccarm") { + if (defined(board_toolchain_type) && board_toolchain_type == "iccarm") { cflags = [ "--diag_suppress", "Pe513", -- Gitee