Add files/patch-cmake__modules_SetupCxxFlags.cmake to fix build on

powerpc:

  SSE4.2 required but compiler doesn't support it.

Approved by:	portmgr (tier-2 blanket)
This commit is contained in:
Mark Linimon 2020-06-16 16:34:51 +00:00
parent 974a3ef88e
commit 632db3c807
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=539366

View file

@ -0,0 +1,11 @@
--- cmake_modules/SetupCxxFlags.cmake.orig 2020-06-15 16:23:49 UTC
+++ cmake_modules/SetupCxxFlags.cmake
@@ -27,7 +27,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch
set(ARROW_CPU_FLAG "armv8")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "armv7")
set(ARROW_CPU_FLAG "armv7")
-elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc")
+elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc|powerpc64|ppc")
set(ARROW_CPU_FLAG "ppc")
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "s390x")
set(ARROW_CPU_FLAG "s390x")