[xtensor] 03/04: Do not build with -march=native

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu May 18 16:35:51 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.

commit cde049cd58691376ec98cecf2c63e1a31c971f39
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Thu May 18 17:05:05 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..18525e8
--- /dev/null
+++ b/debian/patches/No-march-native.patch
@@ -0,0 +1,35 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Thu, 18 May 2017 17:04:14 +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 95667af..50b422e 100644
+--- a/benchmark/CMakeLists.txt
++++ b/benchmark/CMakeLists.txt
+@@ -23,7 +23,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 e027918..9db4463 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -23,7 +23,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
new file mode 100644
index 0000000..67b4927
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+No-march-native.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/xtensor.git



More information about the debian-science-commits mailing list