yolobs-studio/debian/patches/0007-Do-not-build-with-SSE2-enabled-on-i386.patch

22 lines
693 B
Diff
Raw Normal View History

2020-03-25 20:42:32 +00:00
From: Sebastian Ramacher <sramacher@debian.org>
Date: Wed, 25 Mar 2020 21:42:09 +0100
Subject: Do not build with SSE2 enabled on i386
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
2020-10-01 20:29:31 +00:00
index 5bdfe21..5ff4ee9 100644
2020-03-25 20:42:32 +00:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2020-10-01 20:29:31 +00:00
@@ -122,7 +122,7 @@ else ()
2020-03-25 20:42:32 +00:00
string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_SYSTEM_PROCESSOR)
endif ()
2020-10-01 20:29:31 +00:00
-if(LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86|x86|x64|x86_64|amd64|e2k)")
+if(LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(x86|x64|x86_64|amd64|e2k)")
2020-03-25 20:42:32 +00:00
set(NEEDS_SIMDE "0")
if(NOT MSVC)
set(ARCH_SIMD_FLAGS "-mmmx" "-msse" "-msse2")