Remove -march=native from mimalloc build.
authorRyan Pavlik <ryan.pavlik@collabora.com>
Thu, 11 Feb 2021 21:06:33 +0000 (21:06 +0000)
committerRyan Pavlik <ryan@ryanpavlik.com>
Thu, 11 Feb 2021 21:06:33 +0000 (21:06 +0000)
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

extlib/mimalloc/CMakeLists.txt

index 37616eb4d425914d2224e7e29d9952a34980b83e..e8e7f88838be78e26f4941316af97e9cf2c7567e 100644 (file)
@@ -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)