Add 0007-Remove-march-native-from-mimalloc-build.patch: fix buildd-discovered issue.
authorRyan Pavlik <ryan.pavlik@collabora.com>
Wed, 10 Feb 2021 22:22:52 +0000 (16:22 -0600)
committerRyan Pavlik <ryan.pavlik@collabora.com>
Wed, 10 Feb 2021 22:22:52 +0000 (16:22 -0600)
debian/patches/0007-Remove-march-native-from-mimalloc-build.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0007-Remove-march-native-from-mimalloc-build.patch b/debian/patches/0007-Remove-march-native-from-mimalloc-build.patch
new file mode 100644 (file)
index 0000000..8c18e31
--- /dev/null
@@ -0,0 +1,24 @@
+From: Ryan Pavlik <ryan.pavlik@collabora.com>
+Date: Wed, 10 Feb 2021 16:20:25 -0600
+Subject: Remove -march=native from mimalloc build.
+
+---
+ 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)
index 46a6dce85549aa3be860da596cf72eea525eb06d..6941368980a4978cba91cfe02dcb11d168cbf438 100644 (file)
@@ -2,6 +2,6 @@
 02_add_debian_pkg_version.patch
 03_use_system_threejs.patch
 04_use_system_unifont.patch
-
 10_mimalloc_restrict_cpu_yield.patch
 11_update_js_three_r111.patch
+0007-Remove-march-native-from-mimalloc-build.patch