8
0

- Run unit tests for all available python versions

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xtensor-python?expand=0&rev=5
This commit is contained in:
2024-12-30 14:15:15 +00:00
committed by Git OBS Bridge
commit 55ef08022c
7 changed files with 209 additions and 0 deletions

13
cxx-flags.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: xtensor-python-0.27.0/test/CMakeLists.txt
===================================================================
--- xtensor-python-0.27.0.orig/test/CMakeLists.txt
+++ xtensor-python-0.27.0/test/CMakeLists.txt
@@ -30,7 +30,7 @@ include(CheckCXXCompilerFlag)
string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion -fvisibility=hidden")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-parameter -Wextra -Wreorder -Wconversion -fvisibility=hidden")
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
if (HAS_CPP14_FLAG)