Revert "Reapply "Tizen-Base-X-ASAN: remove ASAN config"" 06/317306/1
authorDongkyun Son <dongkyun.s@samsung.com>
Mon, 30 Dec 2024 07:46:29 +0000 (16:46 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Mon, 30 Dec 2024 07:47:04 +0000 (16:47 +0900)
This reverts commit db978993397c27944f7791577d479cbe847cc975.

Change-Id: I9b9c4c4fc64b86b1161fac54757a4933a4489273

TIZEN/Tizen/Tizen-Base-X-ASAN/project_config

index 90b8b4fd3b30f7b13ec815427a79247b357e5724..4877ae3eb8574ad28cbb40e173ed3e29ab5f0a36 100644 (file)
@@ -257,5 +257,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 findutils
+RunScripts: libasan
+RunScripts: asan-build-env
+RunScripts: asan-force-options
 
+Macros:
+%__spec_check_pre exit 0
+%run_check_section 0
+:Macros