--- CMakeLists.txt.orig	2023-05-09 13:20:57
+++ CMakeLists.txt	2023-05-09 13:41:03
@@ -87,7 +87,7 @@
 # workaround for GNU GCC poor AVX load/store code generation
 if(
     CMAKE_CXX_COMPILER_ID STREQUAL "GNU"
-    AND CMAKE_SYSTEM_PROCESSOR MATCHES "^(i.86|x86(_64)?)$"
+    AND CMAKE_OSX_ARCHITECTURES MATCHES "i.86|x86(_64)?|amd64|AMD64"
 )
   simdjson_add_props(
       target_compile_options PRIVATE
