From 309887640f2b80c3b16ec09f2eb5ec9537f64385 Mon Sep 17 00:00:00 2001 From: suwenxiang Date: Mon, 25 Jul 2022 20:23:22 +0800 Subject: [PATCH] Description: Mini platform GN + iccarm compile and build IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I5IS4P Feature or Bugfix: Feature Binary Source: No Signed-off-by: suwenxiang --- BUILD.gn | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 40cc7f3..cdecfbe 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -27,8 +27,16 @@ if (defined(ohos_lite)) { } sources = [ "cpp/qrcodegen.cpp" ] include_dirs = [ "//third_party/qrcodegen/cpp" ] - cflags = [ "-Wall" ] - cflags_cc = cflags + if (board_toolchain_type != "iccarm") { + cflags = [ "-Wall" ] + cflags_cc = cflags + } else { + cflags = [ + "--diag_suppress", + "Pe366", + ] + cflags_cc = cflags + } public_configs = [ ":libqrcodegen_config" ] }