mirror of
https://abf.rosa.ru/djam/zstd.git
synced 2025-02-23 03:42:47 +00:00
add more patches
This commit is contained in:
parent
4433d5e08a
commit
199c832811
2 changed files with 14 additions and 0 deletions
13
dont-vectorize-like-a-clang-e2k.patch
Normal file
13
dont-vectorize-like-a-clang-e2k.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/lib/common/compiler.h b/lib/common/compiler.h
|
||||
index 95e9483..088afcf 100644
|
||||
--- a/lib/common/compiler.h
|
||||
+++ b/lib/common/compiler.h
|
||||
@@ -139,7 +139,7 @@
|
||||
|
||||
/* vectorization
|
||||
* older GCC (pre gcc-4.3 picked as the cutoff) uses a different syntax */
|
||||
-#if !defined(__INTEL_COMPILER) && !defined(__clang__) && defined(__GNUC__)
|
||||
+#if !defined(__INTEL_COMPILER) && !defined(__clang__) && defined(__GNUC__) && !defined(__LCC__)
|
||||
# if (__GNUC__ == 4 && __GNUC_MINOR__ > 3) || (__GNUC__ >= 5)
|
||||
# define DONT_VECTORIZE __attribute__((optimize("no-tree-vectorize")))
|
||||
# else
|
|
@ -17,6 +17,7 @@ Url: http://www.zstd.net/
|
|||
Source0: https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: zstd-1.3.4-multi-thread-default.patch
|
||||
Patch1: define-mtime-e2k.patch
|
||||
Patch2: dont-vectorize-like-a-clang-e2k.patch
|
||||
BuildRequires: gtest-devel
|
||||
BuildRequires: pkgconfig(liblz4)
|
||||
BuildRequires: pkgconfig(liblzma)
|
||||
|
|
Loading…
Add table
Reference in a new issue