summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongkyun Son <dongkyun.s@samsung.com>2024-11-05 13:13:08 +0900
committerDongkyun Son <dongkyun.s@samsung.com>2024-11-05 13:16:52 +0900
commit34c74caead83586d3fd56bc59327388407dffcf5 (patch)
treebb829c2642a91d4d41c1da6dfd681a37a01750ac
parent3fb406bb0afa6236af3e1951b692e9549f5fb12d (diff)
downloadperipheral-io-sandbox/dkson95/asan.tar.gz
peripheral-io-sandbox/dkson95/asan.tar.bz2
peripheral-io-sandbox/dkson95/asan.zip
packaging: asan: skip Werror=format-truncation=tizensandbox/dkson95/asan
Change-Id: Id6199553b1386705fd586c3cfbdd9bbfa234919e Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
-rw-r--r--packaging/capi-system-peripheral-io.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/packaging/capi-system-peripheral-io.spec b/packaging/capi-system-peripheral-io.spec
index 8ff648b..b0c4eb3 100644
--- a/packaging/capi-system-peripheral-io.spec
+++ b/packaging/capi-system-peripheral-io.spec
@@ -52,6 +52,10 @@ cp %{SOURCE11} .
cp %{SOURCE12} .
%build
+%{?asan:
+export CFLAGS+=" -Wno-format-truncation "
+export CXXFLAGS+=" -Wno-format-truncation "
+}
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake . -DMAJORVER=${MAJORVER} -DFULLVER=%{version} -DGCOV=%{gcov}