Accepting request 941255 from home:dirkmueller:Factory
- add xxhash-avoid-armv6-unaligned-access.patch (bsc#1193317) OBS-URL: https://build.opensuse.org/request/show/941255 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=118
This commit is contained in:
parent
fc823c515a
commit
fc238fadf1
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Dec 17 15:25:36 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add xxhash-avoid-armv6-unaligned-access.patch (bsc#1193317)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 2 21:57:55 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
Thu Dec 2 21:57:55 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ URL: https://ccache.dev/
|
|||||||
Source0: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz
|
Source0: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz
|
||||||
Source1: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz.asc
|
Source1: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz.asc
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
|
Patch1: xxhash-avoid-armv6-unaligned-access.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: libzstd-devel >= 1.1.2
|
BuildRequires: libzstd-devel >= 1.1.2
|
||||||
@ -38,7 +39,7 @@ being done again. Supported languages are C, C++, Objective-C and
|
|||||||
Objective-C++.
|
Objective-C++.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake \
|
%cmake \
|
||||||
|
17
xxhash-avoid-armv6-unaligned-access.patch
Normal file
17
xxhash-avoid-armv6-unaligned-access.patch
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
Index: ccache-4.5.1/src/third_party/xxhash.h
|
||||||
|
===================================================================
|
||||||
|
--- ccache-4.5.1.orig/src/third_party/xxhash.h
|
||||||
|
+++ ccache-4.5.1/src/third_party/xxhash.h
|
||||||
|
@@ -806,10 +806,8 @@ XXH_PUBLIC_API XXH128_hash_t XXH128(cons
|
||||||
|
* Prefer these methods in priority order (0 > 1 > 2 > 3)
|
||||||
|
*/
|
||||||
|
#ifndef XXH_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */
|
||||||
|
-# if !defined(__clang__) && defined(__GNUC__) && defined(__ARM_FEATURE_UNALIGNED) && defined(__ARM_ARCH) && (__ARM_ARCH == 6)
|
||||||
|
-# define XXH_FORCE_MEMORY_ACCESS 2
|
||||||
|
-# elif !defined(__clang__) && ((defined(__INTEL_COMPILER) && !defined(_WIN32)) || \
|
||||||
|
- (defined(__GNUC__) && (defined(__ARM_ARCH) && __ARM_ARCH >= 7)))
|
||||||
|
+# if !defined(__clang__) && ((defined(__INTEL_COMPILER) && !defined(_WIN32)) || \
|
||||||
|
+ (defined(__GNUC__) && (defined(__ARM_ARCH) && __ARM_ARCH >= 6)))
|
||||||
|
# define XXH_FORCE_MEMORY_ACCESS 1
|
||||||
|
# endif
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user