Blame SOURCES/742.patch

035ce6
From fbb1523f7874ac9de37989cbd6c17af70de68f28 Mon Sep 17 00:00:00 2001
035ce6
From: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
035ce6
Date: Fri, 13 May 2022 11:34:53 +0200
035ce6
Subject: [PATCH] Do not run tests on unsupported architectures
035ce6
035ce6
---
035ce6
 test/test_batch_manip.cpp | 5 +++++
035ce6
 test/test_sum.hpp         | 3 +++
035ce6
 2 files changed, 8 insertions(+)
035ce6
035ce6
diff --git a/test/test_batch_manip.cpp b/test/test_batch_manip.cpp
035ce6
index 45c8939f8..b8ca978d3 100644
035ce6
--- a/test/test_batch_manip.cpp
035ce6
+++ b/test/test_batch_manip.cpp
035ce6
@@ -9,6 +9,9 @@
035ce6
  * The full license is in the file LICENSE, distributed with this software. *
035ce6
  ****************************************************************************/
035ce6
 
035ce6
+#include "xsimd/xsimd.hpp"
035ce6
+#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
035ce6
+
035ce6
 #include "test_utils.hpp"
035ce6
 
035ce6
 namespace xsimd
035ce6
@@ -212,3 +215,5 @@ TYPED_TEST(swizzle_test, swizzle_dup)
035ce6
 {
035ce6
     this->swizzle_dup();
035ce6
 }
035ce6
+
035ce6
+#endif
035ce6
diff --git a/test/test_sum.hpp b/test/test_sum.hpp
035ce6
index 89af1a236..e5edeaf0f 100644
035ce6
--- a/test/test_sum.hpp
035ce6
+++ b/test/test_sum.hpp
035ce6
@@ -1,6 +1,7 @@
035ce6
 #ifndef XSIMD_TEST_SUM_HPP
035ce6
 #define XSIMD_TEST_SUM_HPP
035ce6
 #include "xsimd/xsimd.hpp"
035ce6
+#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
035ce6
 
035ce6
 struct sum
035ce6
 {
035ce6
@@ -29,3 +30,5 @@ extern template float sum::operator()(xsimd::avx, float const*, unsigned);
035ce6
 #endif
035ce6
 
035ce6
 #endif
035ce6
+
035ce6
+#endif