From 25b9d765ca3184228e20d1e000e3a9153f018599 Mon Sep 17 00:00:00 2001 From: suwenxiang Date: Fri, 9 Sep 2022 16:38:06 +0800 Subject: [PATCH] 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 8bc7ee0..b4efc63 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -22,7 +22,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