File: 12_Remove-march-native-from-mimalloc-build.patch

package info (click to toggle)
solvespace 3.0.rc2%2Brepack1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 13,136 kB
  • sloc: cpp: 121,426; ansic: 8,912; javascript: 1,919; sh: 113; xml: 44; makefile: 25
file content (29 lines) | stat: -rw-r--r-- 876 bytes parent folder | download
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
26
27
28
29
Subject: Remove -march=native from mimalloc build.
Bug: https://github.com/microsoft/mimalloc/issues/361
Bug: https://github.com/solvespace/solvespace/issues/934
From: Ryan Pavlik <ryan.pavlik@collabora.com>
Last-Update: 2021-02-11

Date: Wed, 10 Feb 2021 16:20:25 -0600


---
 extlib/mimalloc/CMakeLists.txt | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/extlib/mimalloc/CMakeLists.txt b/extlib/mimalloc/CMakeLists.txt
index 37616eb..e8e7f88 100644
--- a/extlib/mimalloc/CMakeLists.txt
+++ b/extlib/mimalloc/CMakeLists.txt
@@ -183,11 +183,6 @@ if(CMAKE_C_COMPILER_ID MATCHES "AppleClang|Clang|GNU|Intel" AND NOT CMAKE_SYSTEM
   endif()
 endif()
 
-# Architecture flags
-if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm")
-    list(APPEND mi_cflags -march=native)
-endif()
-
 # extra needed libraries
 if(WIN32)
   list(APPEND mi_libraries psapi shell32 user32 bcrypt)