From 1d761adec046b8cbca08e2baf3d0aab89751c583 Mon Sep 17 00:00:00 2001 From: lwx1210331 Date: Mon, 5 Dec 2022 13:15:46 +0800 Subject: [PATCH] Descrption:L2 changed compile option from Oz to O2.Featuer or Bugfix:Feature Binary Source:NO Signed-off-by: lwx1210331 --- config/compiler/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn index 0f1a558c..c1028de9 100755 --- a/config/compiler/BUILD.gn +++ b/config/compiler/BUILD.gn @@ -1399,7 +1399,7 @@ config("no_optimize") { # On ohos we kind of optimize some things that don't affect debugging # much even when optimization is disabled to get the binary size down. if (is_clang) { - cflags = [ "-Oz" ] + common_optimize_on_cflags + cflags = [ "-O2" ] + common_optimize_on_cflags } else { cflags = [ "-Os" ] + common_optimize_on_cflags } -- Gitee