From 7168bf04f632dbed1807a6566b8c8e7e1030390f Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Tue, 23 Jul 2024 14:01:47 +0900 Subject: [PATCH] [Tizen] Support asan build option This reverts commit 9a7a490e7a76aa25bdf0361cb0cfec06cc8447fa. Change-Id: Iae0cdb6670218426b988cf9337c549fe62bee25d --- packaging/dali-toolkit.spec | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packaging/dali-toolkit.spec b/packaging/dali-toolkit.spec index c8baccd..a3b3b19 100644 --- a/packaging/dali-toolkit.spec +++ b/packaging/dali-toolkit.spec @@ -21,6 +21,13 @@ BuildRequires: pkgconfig(egl) BuildRequires: gettext BuildRequires: pkgconfig(libtzplatform-config) +# For ASAN test +%if "%{vd_asan}" == "1" || "%{asan}" == "1" +BuildRequires: asan-force-options +BuildRequires: asan-build-env +BuildRequires: libasan +%endif + ############################# # profile setup ############################# @@ -203,6 +210,12 @@ LDFLAGS+=" --coverage " CXXFLAGS+=" -D_ARCH_ARM_" %endif +%if "%{vd_asan}" == "1" || "%{asan}" == "1" +CFLAGS+=" -fsanitize=address" +CXXFLAGS+=" -fsanitize=address" +LDFLAGS+=" -fsanitize=address" +%endif + libtoolize --force cd %{_builddir}/dali2-toolkit-%{version}/build/tizen -- 2.7.4