diff --git a/BUILD.gn b/BUILD.gn index d8804e5f127ea9382370041542bc043790b1b984..c59ca0195dea9036b62521450d23b87cc33641cc 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",