From 2fafc19f1692555c759611e069673f6eb2e7a712 Mon Sep 17 00:00:00 2001 From: dongsenhao Date: Fri, 28 Jul 2023 12:55:30 +0800 Subject: [PATCH] add compilation options for pixelmap_builder Signed-off-by: dongsenhao --- purgeable_builder/BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/purgeable_builder/BUILD.gn b/purgeable_builder/BUILD.gn index dced32d..ae2ffc4 100644 --- a/purgeable_builder/BUILD.gn +++ b/purgeable_builder/BUILD.gn @@ -16,7 +16,12 @@ import("//commonlibrary/memory_utils/purgeable_mem_config.gni") config("purgeable_builder_config") { include_dirs = [ "include" ] - cflags_cc = [ "-fexceptions" ] + cflags_cc = [ + "-D_FORTIFY_SOURCE = 2", + "-fexceptions", + "-fstack-protector-all", + "-O2", + ] } ohos_shared_library("pixelmap_builder") { -- Gitee