From 976641e02e5a1fb794b6698c702cbc425fa5f0d7 Mon Sep 17 00:00:00 2001 From: heyinshen Date: Tue, 2 Aug 2022 20:03:33 +0800 Subject: [PATCH] fix iccarm compile error Signed-off-by: heyinshen --- deps_adapter/BUILD.gn | 2 +- services/BUILD.gn | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/deps_adapter/BUILD.gn b/deps_adapter/BUILD.gn index 5341bbfa..10e7c87b 100644 --- a/deps_adapter/BUILD.gn +++ b/deps_adapter/BUILD.gn @@ -43,7 +43,7 @@ if (defined(ohos_lite)) { ] cflags = [ "-DHILOG_ENABLE" ] - cflags += [ "-DAUTH_STORAGE_PATH = \"${deviceauth_storage_path}\"" ] + cflags += [ "-DAUTH_STORAGE_PATH=\"${deviceauth_storage_path}\"" ] if (board_toolchain_type == "iccarm") { cflags += [ "--diag_suppress", diff --git a/services/BUILD.gn b/services/BUILD.gn index 8ebb3cd6..5e3999ad 100644 --- a/services/BUILD.gn +++ b/services/BUILD.gn @@ -40,16 +40,17 @@ if (os_level == "mini" || os_level == "small") { defines = [ "HILOG_ENABLE" ] defines += deviceauth_defines - cflags = build_flags - cflags += [ - "-DHICHAIN_THREAD_STACK_SIZE = ${deviceauth_hichain_thread_stack_size}", - ] if (board_toolchain_type == "iccarm") { - cflags += [ + cflags = [ "--diag_suppress", "Pe546,Pe223,Pe111,Pe188", ] + } else { + cflags = build_flags } + cflags += [ + "-DHICHAIN_THREAD_STACK_SIZE=${deviceauth_hichain_thread_stack_size}", + ] if (ohos_kernel_type == "linux" || ohos_kernel_type == "liteos_a") { include_dirs += [ "//base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog" ]