summaryrefslogblamecommitdiff
path: root/user/mlt/x86caps.patch
blob: 4b8e3ae0b135b95f569eb6514a32a2e33d36a253 (plain) (tree)




































                                                                                                
--- mlt-7.6.0/CMakeLists.txt.old	2022-03-29 13:12:42.000000000 -0500
+++ mlt-7.6.0/CMakeLists.txt	2022-06-12 04:00:05.290000000 -0500
@@ -125,10 +125,8 @@
 if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
   if(CMAKE_SYSTEM_PROCESSOR MATCHES "i686|x86|x86_64|AMD64")
     set(CPU_MMX ON)
-    set(CPU_SSE ON)
-    set(CPU_SSE2 ON)
     if(NOT MSVC) # also NOT clang-cl
-      list(APPEND MLT_COMPILE_OPTIONS "-mmmx;-msse;-msse2")
+      list(APPEND MLT_COMPILE_OPTIONS "-mmmx")
     endif()
   endif()
   if(CMAKE_SYSTEM_PROCESSOR MATCHES "i686" OR (WIN32 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86"))
@@ -136,6 +134,9 @@
   endif()
   if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64")
     set(CPU_X86_64 ON)
+    set(CPU_SSE ON)
+    set(CPU_SSE2 ON)
+    set(CPU_SSE3 ON)
   endif()
 endif()
 
--- mlt-7.6.0/src/modules/xine/CMakeLists.txt.old	2022-03-29 13:12:42.000000000 -0500
+++ mlt-7.6.0/src/modules/xine/CMakeLists.txt	2022-06-12 03:59:39.880000000 -0500
@@ -30,6 +30,10 @@
   target_compile_definitions(mltxine PRIVATE USE_SSE2)
 endif()
 
+if(CPU_SSE3)
+  target_compile_definitions(mltxine PRIVATE USE_SSE3)
+endif()
+
 if(CPU_X86_32)
   target_compile_definitions(mltxine PRIVATE ARCH_X86)
 endif()