[packages/ccache] set XXH_FORCE_MEMORY_ACCESS on %{arm} for internal xxHash

atler atler at pld-linux.org
Thu Jun 3 13:35:16 CEST 2021


commit 595a1b9b3603e8e470c10519204886052825f745
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jun 3 13:25:41 2021 +0200

    set XXH_FORCE_MEMORY_ACCESS on %{arm} for internal xxHash
    
    see 1d2c2db in xxHash.spec

 ccache.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/ccache.spec b/ccache.spec
index 3586ce1..eb43b1d 100644
--- a/ccache.spec
+++ b/ccache.spec
@@ -24,6 +24,10 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		pkglibexecdir	%{_libexecdir}/%{name}
 
+%ifarch %{arm}
+%define		archcflags	-DXXH_FORCE_MEMORY_ACCESS=1
+%endif
+
 %description
 ccache is a compiler cache. It acts as a caching pre-processor to
 C/C++ compilers, using the -E compiler switch and a hash to detect
@@ -62,6 +66,7 @@ kompilatora.
 %setup -q
 
 %build
+export CFLAGS="%{rpmcflags} %{?archcflags}"
 %cmake -B build \
 	-DUSE_CCACHE=OFF \
 	-DUSE_FASTER_LINKER=OFF
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ccache.git/commitdiff/595a1b9b3603e8e470c10519204886052825f745



More information about the pld-cvs-commit mailing list