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