[x265] [PATCH] Added POWER CPU architecture detection
Steve Borho
steve at borho.org
Fri Jul 17 20:22:54 CEST 2015
On 07/17, Peter Kov???? wrote:
> # HG changeset patch
> # User Peter Kov???? <peter.kovar at reflexion.tv>
> # Date 1435919347 14400
> # Fri Jul 03 06:29:07 2015 -0400
> # Node ID b61be4aa4a4099e2597aaeda5eb54b9adaf6b051
> # Parent b2ba7df1fc6992516cfce36fac1ff4fc6bac1a5e
> Added POWER CPU architecture detection
>
> diff -r b2ba7df1fc69 -r b61be4aa4a40 source/CMakeLists.txt
> --- a/source/CMakeLists.txt Thu Jul 16 19:36:35 2015 -0700
> +++ b/source/CMakeLists.txt Fri Jul 03 06:29:07 2015 -0400
> @@ -42,6 +42,8 @@
> string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" SYSPROC)
> set(X86_ALIASES x86 i386 i686 x86_64 amd64)
> list(FIND X86_ALIASES "${SYSPROC}" X86MATCH)
> +set(POWER_ALIASES ppc64 ppc64le)
> +list(FIND POWER_ALIASES "${SYSPROC}" POWERMATCH)
> if("${SYSPROC}" STREQUAL "" OR X86MATCH GREATER "-1")
> message(STATUS "Detected x86 target processor")
> set(X86 1)
> @@ -50,6 +52,10 @@
> set(X64 1)
> add_definitions(-DX86_64=1)
> endif()
> +elseif("${SYSPROC}" STREQUAL "" OR POWERMATCH GREATER "-1")
a second STREQUAL "" here in the elseif isn't helpful. otherwise it
seems fine
> + message(STATUS "Detected POWER target processor")
> + set(POWER 1)
> + add_definitions(-DX265_ARCH_POWER=1)
> elseif(${SYSPROC} STREQUAL "armv6l")
> message(STATUS "Detected ARM target processor")
> set(ARM 1)
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
--
Steve Borho
More information about the x265-devel
mailing list