[med-svn] [hyphy] 01/02: Make sure that also in tests the existence of SSE3 extension is done
Andreas Tille
tille at debian.org
Thu Jul 23 15:31:24 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository hyphy.
commit f1732a6bab8dc06dc6e470a885253a3487f7898f
Author: Andreas Tille <tille at debian.org>
Date: Thu Jul 23 17:13:36 2015 +0200
Make sure that also in tests the existence of SSE3 extension is done
---
debian/changelog | 2 ++
debian/patches/msse_option_only_if_available.patch | 32 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 35 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2d40819..c030dab 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ hyphy (2.2.5+dfsg-2) UNRELEASED; urgency=medium
* Disable unneded test that breaks on 32 bit architectures (Thanks for
the hint to Jakub Wilk <jwilk at debian.org>)
Closes: #793346
+ * Make sure that also in tests the existence of SSE3 extension is done
+ Closes: #793344
-- Andreas Tille <tille at debian.org> Thu, 23 Jul 2015 13:12:54 +0200
diff --git a/debian/patches/msse_option_only_if_available.patch b/debian/patches/msse_option_only_if_available.patch
new file mode 100644
index 0000000..1f70cd8
--- /dev/null
+++ b/debian/patches/msse_option_only_if_available.patch
@@ -0,0 +1,32 @@
+Description: Make sure that also in tests the existence of SSE3 extension is done
+Bug-Debian: http://bugs.debian.org/793344
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Thu, 23 Jul 2015 13:12:54 +0200
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -454,13 +454,23 @@ set_property(
+ TARGET HYPHYGTEST
+ APPEND PROPERTY COMPILE_DEFINITIONS __UNITTEST__
+ )
++
++PCL_CHECK_FOR_SSE3()
++if(${HAVE_SSE3_EXTENSIONS})
+ set_target_properties(
+ HYPHYGTEST
+ PROPERTIES
+ COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} ${OpenMP_CXX_FLAGS} -msse3"
+ LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} ${OpenMP_CXX_FLAGS} -msse3"
+ )
+-
++else(${HAVE_SSE3_EXTENSIONS})
++set_target_properties(
++ HYPHYGTEST
++ PROPERTIES
++ COMPILE_FLAGS "${DEFAULT_COMPILE_FLAGS} ${OpenMP_CXX_FLAGS}"
++ LINK_FLAGS "${DEFAULT_COMPILE_FLAGS} ${OpenMP_CXX_FLAGS}"
++)
++endif(${HAVE_SSE3_EXTENSIONS})
+
+ #-------------------------------------------------------------------------------
+ # hyphy gtk+ target
diff --git a/debian/patches/series b/debian/patches/series
index 8558cf8..18e3f96 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ use_debian_sqlite.patch
spelling.patch
drop_profiling_option.patch
remove_unneeded_test.patch
+msse_option_only_if_available.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/hyphy.git
More information about the debian-med-commit
mailing list