From: Ryan Pavlik Date: Wed, 10 Feb 2021 22:22:52 +0000 (-0600) Subject: Add 0007-Remove-march-native-from-mimalloc-build.patch: fix buildd-discovered issue. X-Git-Tag: archive/raspbian/3.1+ds1-4+rpi1^2~57 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=deb4608a7d1230dae50fdcdf2826d0db90ca2b56;p=solvespace.git Add 0007-Remove-march-native-from-mimalloc-build.patch: fix buildd-discovered issue. --- 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 index 0000000..8c18e31 --- /dev/null +++ b/debian/patches/0007-Remove-march-native-from-mimalloc-build.patch @@ -0,0 +1,24 @@ +From: Ryan Pavlik +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) diff --git a/debian/patches/series b/debian/patches/series index 46a6dce..6941368 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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