diff --git a/BUILD.gn b/BUILD.gn index 8bc7ee0eebb76348fa3a284ec98945cdfe6f271e..b4efc636808935641cfd7b2f10efb238bb645703 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",