From: Ryan Pavlik Date: Thu, 11 Feb 2021 21:06:33 +0000 (+0000) Subject: Remove -march=native from mimalloc build. X-Git-Tag: archive/raspbian/3.1+ds1-3+rpi1~1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a4b96edbf372bb4d9bead2817737b96daa3ac26d;p=solvespace.git Remove -march=native from mimalloc build. Bug: https://github.com/microsoft/mimalloc/issues/361 Bug: https://github.com/solvespace/solvespace/issues/934 Last-Update: 2021-02-11 Gbp-Pq: Name 12_Remove-march-native-from-mimalloc-build.patch --- 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)