From: Ryan Pavlik Date: Sat, 8 May 2021 11:09:42 +0000 (+0100) Subject: Remove -march=native from mimalloc build. X-Git-Tag: archive/raspbian/3.1+ds1-3+rpi1~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=647c09adf53f530d891348adad8e78b055ea2efb;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)