From 5734d02c484a3f45492cf079fedad3c9080148ed Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Sat, 20 Apr 2024 16:49:01 +0900 Subject: [PATCH] Tizen-Base-X-ASAN: update project_config Enable ASan for the project Change-Id: I161c783fcfd628b59acf4f60a0a9213351bbd90c Signed-off-by: Dongkyun Son --- TIZEN/Tizen/Tizen-Base-X-ASAN/project_config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/TIZEN/Tizen/Tizen-Base-X-ASAN/project_config b/TIZEN/Tizen/Tizen-Base-X-ASAN/project_config index 700816f..c90b2de 100644 --- a/TIZEN/Tizen/Tizen-Base-X-ASAN/project_config +++ b/TIZEN/Tizen/Tizen-Base-X-ASAN/project_config @@ -255,5 +255,19 @@ Optflags: i686 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buf Optflags: x86_64 %{__global_cflags} -feliminate-unused-debug-types --param=ssp-buffer-size=4 -fdiagnostics-color=never -m64 -march=nehalem -msse4.2 -mfpmath=sse -fasynchronous-unwind-tables -fno-omit-frame-pointer Optflags: riscv64 %{__global_cflags} -feliminate-unused-debug-types -Wformat -mabi=lp64d -march=rv64gc +#### Enable ASan for the project +%define asan 1 +Macros: +%asan 1 +:Macros +Preinstall: asan-build-env libasan libstdc++ +Preinstall: asan-force-options +RunScripts: libasan +RunScripts: asan-build-env +RunScripts: asan-force-options +Macros: +%__spec_check_pre exit 0 +%run_check_section 0 +:Macros -- 2.7.4