diff options
Diffstat (limited to 'user/mlt/x86caps.patch')
-rw-r--r-- | user/mlt/x86caps.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/user/mlt/x86caps.patch b/user/mlt/x86caps.patch new file mode 100644 index 000000000..4b8e3ae0b --- /dev/null +++ b/user/mlt/x86caps.patch @@ -0,0 +1,37 @@ +--- 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() |