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 <suwenxiang@huawei.com>
This commit is contained in:
suwenxiang 2022-09-09 16:40:06 +08:00
parent c20e17e4fd
commit 11f1426411

View File

@ -27,15 +27,15 @@ if (defined(ohos_lite)) {
}
sources = [ "cpp/qrcodegen.cpp" ]
include_dirs = [ "//third_party/qrcodegen/cpp" ]
if (board_toolchain_type != "iccarm") {
cflags = [ "-Wall" ]
cflags_cc = cflags
} else {
if (defined(board_toolchain_type) && board_toolchain_type == "iccarm") {
cflags = [
"--diag_suppress",
"Pe366",
]
cflags_cc = cflags
} else {
cflags = [ "-Wall" ]
cflags_cc = cflags
}
public_configs = [ ":libqrcodegen_config" ]
}