From 94d9bc082390cee5806c7ddf3163f99c79f55fea Mon Sep 17 00:00:00 2001 From: shenchenkai Date: Wed, 8 Feb 2023 07:43:47 +0000 Subject: [PATCH] add compile option Signed-off-by: shenchenkai --- frameworks/featured/BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frameworks/featured/BUILD.gn b/frameworks/featured/BUILD.gn index 57ef026..2956dc1 100644 --- a/frameworks/featured/BUILD.gn +++ b/frameworks/featured/BUILD.gn @@ -31,6 +31,8 @@ config("hilog_config") { if (ohos_hiviewdfx_disable_privacy_feature) { defines = [ "DISABLE_HILOG_PRIVACY" ] } + cflags = [ "-Wall" ] + cflags_cc = [ "-O2" ] } lite_library("hilog_static") { -- Gitee