[xtensor-python] 05/06: Do not build with -march=native
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri May 19 17:30:44 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository xtensor-python.
commit 8042a00a24fb9ba4c554cb2d0c778cde7e9da80c
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Fri May 19 18:20:18 2017 +0100
Do not build with -march=native
- New patch No-march-native.patch
Gbp-Dch: full
---
debian/patches/No-march-native.patch | 35 +++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 36 insertions(+)
diff --git a/debian/patches/No-march-native.patch b/debian/patches/No-march-native.patch
new file mode 100644
index 0000000..5658af3
--- /dev/null
+++ b/debian/patches/No-march-native.patch
@@ -0,0 +1,35 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Fri, 19 May 2017 18:19:58 +0100
+Subject: No march native
+
+---
+ benchmark/CMakeLists.txt | 2 +-
+ test/CMakeLists.txt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/benchmark/CMakeLists.txt b/benchmark/CMakeLists.txt
+index dfb5311..e46bdca 100644
+--- a/benchmark/CMakeLists.txt
++++ b/benchmark/CMakeLists.txt
+@@ -14,7 +14,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")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-parameter -Wextra -Wreorder -Wconversion")
+ CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
+
+ if (HAS_CPP14_FLAG)
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index 97227c6..613b0c2 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -29,7 +29,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")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-parameter -Wextra -Wreorder -Wconversion")
+ CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
+
+ if (HAS_CPP14_FLAG)
diff --git a/debian/patches/series b/debian/patches/series
index 1685e8b..4cd4780 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
Support-pybind11-2.0-for-Debian-packaging.patch
+No-march-native.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/xtensor-python.git
More information about the debian-science-commits
mailing list