X-Git-Url: https://git.piment-noir.org/?p=deb_x265.git;a=blobdiff_plain;f=debian%2Fpatches%2Fcpu-detection.patch;fp=debian%2Fpatches%2Fcpu-detection.patch;h=1a441ac007836ce9df12b66e94fd1ee9cc0c81b2;hp=0000000000000000000000000000000000000000;hb=4d13a1de5d07bb3e234ec43bf4877ae2df27b8de;hpb=72b9787e2806694c5bc5609dd7c2e5dbbfaa4b2f diff --git a/debian/patches/cpu-detection.patch b/debian/patches/cpu-detection.patch new file mode 100644 index 0000000..1a441ac --- /dev/null +++ b/debian/patches/cpu-detection.patch @@ -0,0 +1,18 @@ +--- a/source/CMakeLists.txt ++++ b/source/CMakeLists.txt +@@ -39,12 +39,14 @@ + set(X86_ALIASES x86 i386 i686 x86_64 amd64) + list(FIND X86_ALIASES "${SYSPROC}" X86MATCH) + if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1") +- message(STATUS "Detected x86 target processor") + set(X86 1) + add_definitions(-DX265_ARCH_X86=1) + if("${CMAKE_SIZEOF_VOID_P}" MATCHES 8) ++ message(STATUS "Detected x86_64 system processor") + set(X64 1) + add_definitions(-DX86_64=1) ++ else() ++ message(STATUS "Detected x86 system processor") + endif() + elseif(${SYSPROC} STREQUAL "armv6l") + message(STATUS "Detected ARM target processor")