From afae2579fef6790be76672542417697ae4f16906 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Wed, 16 Oct 2024 15:45:41 +0900 Subject: [PATCH] [Tizen] Support asan build option This reverts commit bcab05cded6306d290d335d9c719f55eda34de2b. Change-Id: I348ef3f8c58440e34a4883accee0d0c368de4677 --- packaging/dali-csharp-binder.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packaging/dali-csharp-binder.spec b/packaging/dali-csharp-binder.spec index cc45b094..42a4050e 100644 --- a/packaging/dali-csharp-binder.spec +++ b/packaging/dali-csharp-binder.spec @@ -66,6 +66,13 @@ BuildRequires: pkgconfig(ecore-wl2) BuildRequires: pkgconfig(ecore-wayland) %endif +# For ASAN test +%if "%{vd_asan}" == "1" || "%{asan}" == "1" +BuildRequires: asan-force-options +BuildRequires: asan-build-env +BuildRequires: libasan +%endif + # for multiprofile Requires: %{name}-compat = %{version}-%{release} Recommends: %{name}-profile_common = %{version}-%{release} @@ -231,6 +238,12 @@ CXXFLAGS+=" -DOVER_TIZEN_VERSION_7" %endif +%if "%{vd_asan}" == "1" || "%{asan}" == "1" +CFLAGS+=" -fsanitize=address" +CXXFLAGS+=" -fsanitize=address" +LDFLAGS+=" -fsanitize=address" +%endif + %if 0%{?enable_debug} cmake_flags+=" -DCMAKE_BUILD_TYPE=Debug" %endif -- 2.34.1