diff --git a/disable_sse.patch b/disable_sse.patch index 71c9897..3c69c85 100644 --- a/disable_sse.patch +++ b/disable_sse.patch @@ -8,8 +8,9 @@ Testing the compiler for SSE availability is wrong — if anything, the test needs to happen at runtime. --- - cmake/unix.cmake | 5 ----- - 1 file changed, 5 deletions(-) + cmake/unix.cmake | 5 ----- + thirdparty/dumb/helpers/resampler.c | 2 +- + 2 files changed, 1 insertion(+), 6 deletions(-) Index: SLADE-3.2.6/cmake/unix.cmake =================================================================== @@ -27,3 +28,16 @@ Index: SLADE-3.2.6/cmake/unix.cmake # Enable debug symbols for glib (so gdb debugging works properly with strings etc.) set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_GLIBCXX_DEBUG") +Index: SLADE-3.2.6/thirdparty/dumb/helpers/resampler.c +=================================================================== +--- SLADE-3.2.6.orig/thirdparty/dumb/helpers/resampler.c ++++ SLADE-3.2.6/thirdparty/dumb/helpers/resampler.c +@@ -2,7 +2,7 @@ + #include + #define _USE_MATH_DEFINES + #include +-#if (defined(_M_IX86) || defined(__i386__) || defined(_M_X64) || defined(__amd64__)) ++#if defined(_USE_SSE) && (defined(_M_IX86) || defined(__i386__) || defined(_M_X64) || defined(__amd64__)) + #include + #define RESAMPLER_SSE + #endif