From: huiyu.eun Date: Wed, 3 Apr 2024 06:11:13 +0000 (+0900) Subject: [Tizen] Support asan build option X-Git-Tag: accepted/tizen/unified/20240404.164430~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=efb4cdb0039c4b55d4673caaccb99342c6b079ca;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git [Tizen] Support asan build option This reverts commit 365c4c65ad983be48bcde700a13cda0ed57a4f23. Change-Id: I743fb32f7d11e0958f31f176c12c521a5d5aaa15 --- diff --git a/packaging/dali-csharp-binder.spec b/packaging/dali-csharp-binder.spec index 0b41bb1a..4efc948c 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} @@ -232,6 +239,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