Do not build with SSE2 enabled on i386
This commit is contained in:
parent
30ba13cb33
commit
11768d73cc
2 changed files with 22 additions and 0 deletions
21
debian/patches/0007-Do-not-build-with-SSE2-enabled-on-i386.patch
vendored
Normal file
21
debian/patches/0007-Do-not-build-with-SSE2-enabled-on-i386.patch
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
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
|
||||||
|
index 5ea2c5f..95b49b4 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -113,7 +113,7 @@ else ()
|
||||||
|
string(TOLOWER ${CMAKE_SYSTEM_PROCESSOR} LOWERCASE_CMAKE_SYSTEM_PROCESSOR)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
-if(LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(i[3-6]86|x86|x64|x86_64|amd64)")
|
||||||
|
+if(LOWERCASE_CMAKE_SYSTEM_PROCESSOR MATCHES "(x64|x86_64|amd64)")
|
||||||
|
set(NEEDS_SIMDE "0")
|
||||||
|
if(NOT MSVC)
|
||||||
|
set(ARCH_SIMD_FLAGS "-mmmx" "-msse" "-msse2")
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
|
@ -4,3 +4,4 @@
|
||||||
0004-Link-with-libm-and-libdl-to-fix-underlinking.patch
|
0004-Link-with-libm-and-libdl-to-fix-underlinking.patch
|
||||||
0005-Link-with-xcb-and-X-libraries-to-fix-underlinking.patch
|
0005-Link-with-xcb-and-X-libraries-to-fix-underlinking.patch
|
||||||
0006-Add-SONAME.patch
|
0006-Add-SONAME.patch
|
||||||
|
0007-Do-not-build-with-SSE2-enabled-on-i386.patch
|
||||||
|
|
Loading…
Reference in a new issue