mirror of
https://github.com/openharmony/third_party_qrcodegen.git
synced 2026-07-01 09:10:48 -04:00
!20 修复未定义board_chaintool_type导致编译报错
Merge pull request !20 from suwenxiang/master
This commit is contained in:
@@ -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" ]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user