add more patches

This commit is contained in:
Alexander Stefanov 2020-10-06 16:09:41 +00:00
parent 4433d5e08a
commit 199c832811
2 changed files with 14 additions and 0 deletions

View 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

View file

@ -17,6 +17,7 @@ Url: http://www.zstd.net/
Source0: https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: zstd-1.3.4-multi-thread-default.patch Patch0: zstd-1.3.4-multi-thread-default.patch
Patch1: define-mtime-e2k.patch Patch1: define-mtime-e2k.patch
Patch2: dont-vectorize-like-a-clang-e2k.patch
BuildRequires: gtest-devel BuildRequires: gtest-devel
BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(liblzma) BuildRequires: pkgconfig(liblzma)