summaryrefslogtreecommitdiff
path: root/media-libs/svt-av1/files/svt-av1-0.8.6-no-force-avx.patch
blob: 62f3b9b0c800551866c5e6442d7a4a18b803af26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
https://bugs.gentoo.org/785556
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -170,14 +170,6 @@
     endif()
 endforeach()
 
-if(CMAKE_C_FLAGS MATCHES ".*-march=native.*")
-    string(APPEND CMAKE_C_FLAGS " -mno-avx")
-endif()
-
-if(CMAKE_CXX_FLAGS MATCHES ".*-march=native.*")
-    string(APPEND CMAKE_CXX_FLAGS " -mno-avx")
-endif()
-
 if(CMAKE_ASM_NASM_OBJECT_FORMAT MATCHES "win")
     set(CMAKE_ASM_NASM_FLAGS_DEBUG "${CMAKE_ASM_NASM_FLAGS_DEBUG} -gcv8")
 elseif(CMAKE_ASM_NASM_COMPILER MATCHES "nasm")