From b2a13529a3e00e4d25ae2919cd116b731d5019b3 Mon Sep 17 00:00:00 2001 From: suwenxiang Date: Thu, 28 Jul 2022 16:53:11 +0800 Subject: [PATCH] Description: Mini platform GN + iccarm compile and build IssueNo: https://gitee.com/openharmony/third_party_freetype/issues/I5JEU3 Feature or Bugfix: Feature Binary Source: No Signed-off-by: suwenxiang --- BUILD.gn | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 4a23d53a..f544e2e5 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -15,13 +15,6 @@ if (defined(ohos_lite)) { } config("harfbuzz_config") { include_dirs = [ "//third_party/harfbuzz/src" ] - if (board_toolchain_type == "iccarm") { - cflags = [ - "--diag_suppress", - "Pa068,Pa093,Pe111,Pa181,Pe128,Pe161,Pe177,Pe185,Pe186,Pe550,Pe554", - ] - cflags_cc = cflags - } } harfbuzz_source = [ @@ -82,6 +75,13 @@ if (defined(ohos_lite)) { sources = harfbuzz_source defines = [ "HAVE_PTHREAD = 1" ] public_configs = [ ":harfbuzz_config" ] + if (board_toolchain_type == "iccarm") { + cflags = [ + "--diag_suppress", + "Pa068,Pa093,Pe111,Pa181,Pe128,Pe161,Pe177,Pe185,Pe186,Pe550,Pe554", + ] + cflags_cc = cflags + } } } else { ohos_static_library("harfbuzz_static") { -- GitLab