From: angler Date: Tue, 25 Mar 2025 03:24:54 +0000 (+0900) Subject: [Tizen] Support asan build option X-Git-Tag: accepted/tizen/unified/20250331.151917~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd68806e26008a0fac2ab5b70b85615d21fcbf35;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git [Tizen] Support asan build option This reverts commit e7d9d4ecfa8088ecdc92ca427858a25e7cd06545. --- diff --git a/packaging/dali-csharp-binder.spec b/packaging/dali-csharp-binder.spec index 16515525..ed78a23b 100644 --- a/packaging/dali-csharp-binder.spec +++ b/packaging/dali-csharp-binder.spec @@ -61,6 +61,13 @@ BuildRequires: pkgconfig(watch_viewer_dali) BuildRequires: pkgconfig(watch-holder-base) BuildRequires: pkgconfig(ecore-wl2) +# 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} @@ -226,6 +233,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