1
0

fix-m1-build.patch 417 B

12345678910111213
  1. diff --git a/ports/cmake/src/CMakeLists.txt b/ports/cmake/src/CMakeLists.txt
  2. index ee9a1ba..81d23f8 100644
  3. --- a/ports/cmake/src/CMakeLists.txt
  4. +++ b/ports/cmake/src/CMakeLists.txt
  5. @@ -185,7 +185,7 @@ if(NO_MESSAGES)
  6. set(NO_ERETURN ON)
  7. endif()
  8. -if(WIN32)
  9. +if(WIN32 OR APPLE AND CMAKE_SYSTEM_PROCESSOR MATCHES arm)
  10. set(HAVE_FPU 1)
  11. else()
  12. cmake_host_system_information(RESULT HAVE_FPU QUERY HAS_FPU)