]> git.pld-linux.org Git - packages/ccache.git/commitdiff
set XXH_FORCE_MEMORY_ACCESS on %{arm} for internal xxHash
authorJan Palus <atler@pld-linux.org>
Thu, 3 Jun 2021 11:25:41 +0000 (13:25 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 3 Jun 2021 11:34:42 +0000 (13:34 +0200)
see 1d2c2db in xxHash.spec

ccache.spec

index 3586ce16a0959d0cf47ca9a1f601f931aced8d9f..eb43b1d40979aa27060f70f39436bee13ba6e189 100644 (file)
@@ -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
This page took 0.340691 seconds and 4 git commands to generate.