[med-svn] [Git][med-team/hhsuite][master] Enable ppc64el
Andreas Tille
gitlab at salsa.debian.org
Tue Mar 17 08:33:11 GMT 2020
Andreas Tille pushed to branch master at Debian Med / hhsuite
Commits:
d3801b73 by Frédéric Bonnard at 2019-11-07T15:06:23+01:00
Enable ppc64el
- - - - -
2 changed files:
- + debian/patches/ppc64el.patch
- debian/patches/series
Changes:
=====================================
debian/patches/ppc64el.patch
=====================================
@@ -0,0 +1,43 @@
+Description: Enable ppc64el x86 instrinsics compatibility implementation
+Author: Frédéric Bonnard <frediz at debian.org>
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/cmake/CheckSSEFeatures.cmake
++++ b/cmake/CheckSSEFeatures.cmake
+@@ -168,7 +168,11 @@
+ HAVE_SSE3_EXTENSIONS)
+
+ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG)
+- set(CMAKE_REQUIRED_FLAGS "-msse2")
++ if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
++ set(CMAKE_REQUIRED_FLAGS "-DNO_WARN_X86_INTRINSICS")
++ else()
++ set(CMAKE_REQUIRED_FLAGS "-msse2")
++ endif()
+ elseif(MSVC AND NOT CMAKE_CL_64)
+ set(CMAKE_REQUIRED_FLAGS "/arch:SSE2")
+ endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG)
+@@ -187,7 +191,11 @@
+ HAVE_SSE2_EXTENSIONS)
+
+ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG)
+- set(CMAKE_REQUIRED_FLAGS "-msse")
++ if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
++ set(CMAKE_REQUIRED_FLAGS "-DNO_WARN_X86_INTRINSICS")
++ else()
++ set(CMAKE_REQUIRED_FLAGS "-msse")
++ endif()
+ elseif(MSVC AND NOT CMAKE_CL_64)
+ set(CMAKE_REQUIRED_FLAGS "/arch:SSE")
+ endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANG)
+@@ -225,7 +233,9 @@
+ # SET(SSE_FLAGS "${SSE_FLAGS} -mavx -mfpmath=sse -Wa,-q")
+ # message(STATUS "Found AVXextensions, using flags: ${SSE_FLAGS}")
+ # endif(CMAKE_COMPILER_IS_CLANG)
+- if(HAVE_SSE4_2_EXTENSIONS)
++ if(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64le")
++ SET(SSE_FLAGS "${SSE_FLAGS} -DNO_WARN_X86_INTRINSICS")
++ elseif(HAVE_SSE4_2_EXTENSIONS)
+ SET(SSE_FLAGS "${SSE_FLAGS} -msse4.2 -mfpmath=sse")
+ message(STATUS "Found SSE4.2 extensions, using flags: ${SSE_FLAGS}")
+ elseif(HAVE_SSE4_1_EXTENSIONS)
=====================================
debian/patches/series
=====================================
@@ -5,3 +5,4 @@ disable-ffindex-build.patch
drop-fmemopen.h.patch
disable-AVX-SSE.patch
python3
+ppc64el.patch
View it on GitLab: https://salsa.debian.org/med-team/hhsuite/-/commit/d3801b736149e80c7702458f689d5be6541fc5af
--
View it on GitLab: https://salsa.debian.org/med-team/hhsuite/-/commit/d3801b736149e80c7702458f689d5be6541fc5af
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200317/3345696d/attachment-0001.html>
More information about the debian-med-commit
mailing list