File 0001-Fix-arm-flags.patch of Package x265
64
1
From: Sebastian Ramacher <sramacher@debian.org>
2
Date: Sun, 21 Jun 2020 17:54:56 +0200
3
Subject: Fix arm* flags
4
5
---
6
source/CMakeLists.txt | 3 ---
7
source/cmake/FindNEON_DOTPROD.cmake | 2 +-
8
source/cmake/FindNEON_I8MM.cmake | 2 +-
9
source/cmake/FindSVE.cmake | 2 +-
10
source/cmake/FindSVE2.cmake | 4 ++--
11
5 files changed, 5 insertions(+), 8 deletions(-)
12
13
--- a/source/CMakeLists.txt
14
+++ b/source/CMakeLists.txt
15
16
elseif(ARM)
17
find_package(Neon)
18
if(CPU_HAS_NEON)
19
- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=neon -marm -fPIC)
20
add_definitions(-DHAVE_NEON)
21
- else()
22
- set(ARM_ARGS -mcpu=native -mfloat-abi=hard -mfpu=vfp -marm)
23
endif()
24
endif()
25
if(ARM64)
26
--- a/source/cmake/FindNEON_DOTPROD.cmake
27
+++ b/source/cmake/FindNEON_DOTPROD.cmake
28
29
endif()
30
31
if(has_dot_product)
32
- set(CPU_HAS_NEON_DOTPROD 1)
33
+ set(CPU_HAS_NEON_DOTPROD 0)
34
endif()
35
--- a/source/cmake/FindNEON_I8MM.cmake
36
+++ b/source/cmake/FindNEON_I8MM.cmake
37
38
endif()
39
40
if(has_i8mm)
41
- set(CPU_HAS_NEON_I8MM 1)
42
+ set(CPU_HAS_NEON_I8MM 0)
43
endif()
44
--- a/source/cmake/FindSVE.cmake
45
+++ b/source/cmake/FindSVE.cmake
46
47
endif()
48
49
if(sve_version)
50
- set(CPU_HAS_SVE 1)
51
+ set(CPU_HAS_SVE 0)
52
endif()
53
--- a/source/cmake/FindSVE2.cmake
54
+++ b/source/cmake/FindSVE2.cmake
55
56
endif()
57
58
if(sve2_version)
59
- set(CPU_HAS_SVE 1)
60
- set(CPU_HAS_SVE2 1)
61
+ set(CPU_HAS_SVE 0)
62
+ set(CPU_HAS_SVE2 0)
63
endif()
64