From: joogab.yun Date: Tue, 4 Feb 2025 06:25:35 +0000 (+0900) Subject: [Tizen] Support asan build option X-Git-Tag: accepted/tizen/unified/20250205.095543~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce829d6771c477430c063ad7daef1b26ae2286f5;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git [Tizen] Support asan build option This reverts commit a2c298863405081592b4a125dde3e1209b8ad53f. Change-Id: I79029a246654656be5e86a8e9d66236710bbcc05 --- diff --git a/packaging/dali-csharp-binder.spec b/packaging/dali-csharp-binder.spec index b75328d1..b583a41b 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