From 5c03bf1cacc3833e106fa4eb3202a1ad6d684533 Mon Sep 17 00:00:00 2001 From: compiler Date: Tue, 14 Dec 2021 19:35:11 +0800 Subject: [PATCH] Adaptation for some devices delete the flag "build_public_version" which will cause build failing in some devices. delete the conditional statement before "-Wno-implicit-fallthrough". Signed-off-by: liujialiang --- base/BUILD.gn | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/base/BUILD.gn b/base/BUILD.gn index 9a93ad6..cdf421d 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -26,9 +26,7 @@ config("utils_config") { } config("private_securec_config") { - if (current_os == "mingw") { - cflags = [ "-Wno-implicit-fallthrough" ] - } + cflags = [ "-Wno-implicit-fallthrough" ] } config("static_utils_config") { @@ -161,19 +159,17 @@ ohos_static_library("utilsecurec_ace_allplatforms") { public_configs = [ ":static_utils_config" ] } -if (build_public_version) { - ohos_shared_library("utilsecurec_shared") { - sources = securec_sources - configs = [ - ":utils_config", - ":private_securec_config", - ] - public_configs = [ ":utils_config" ] - part_name = "utils_base" - install_images = [ - "system", - "updater", - ] - } +ohos_shared_library("utilsecurec_shared") { + sources = securec_sources + configs = [ + ":utils_config", + ":private_securec_config", + ] + public_configs = [ ":utils_config" ] + part_name = "utils_base" + install_images = [ + "system", + "updater", + ] } ############################################################################### -- Gitee