File: 0005-Disable-march-native-for-tests.patch

package info (click to toggle)
xeus 5.2.6-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 9,764 kB
  • sloc: cpp: 7,406; makefile: 157; python: 25
file content (25 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Gordon Ball <gordon@chronitis.net>
Date: Wed, 11 Nov 2020 09:27:08 +0000
Subject: Disable -march=native for tests

This doesn't affect the built library, but generates build log warnings.
---
 test/CMakeLists.txt | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 2020626..25f123d 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -33,11 +33,6 @@ endif()
 
 if(CMAKE_CXX_COMPILER_ID MATCHES Clang OR CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Intel)
     add_compile_options(-Wunused-parameter -Wextra -Wreorder -Wconversion -Wsign-conversion)
-
-    CHECK_CXX_COMPILER_FLAG(-march=native HAS_MARCH_NATIVE)
-    if (HAS_MARCH_NATIVE)
-        add_compile_options(-march=native)
-    endif()
 endif()
 
 if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)