Commit 261df72d for tesseract

commit 261df72d14461c67836dc4e4655b47ddd7d16ab1
Author: Stefan Weil <sw@weilnetz.de>
Date:   Sun Nov 15 10:09:23 2026 +0100

    arch: don't use the Accelerate framework with any version of GCC

    The Accelerate framework was disabled for GCC before version 12
    because GCC failed to compile the headers of the framework.

    That is still the case for newer versions. GCC 15.3 with the SDK of
    macOS 26 fails like this:

        vecLib.framework/Headers/vBasicOps.h:672:47: error:
        cannot convert 'uint64x2_t' to 'vUInt32' in return

    This was not noticed because the CI builds for GCC on macOS used g++,
    which is Apple Clang there.

    Disable the framework for all versions of GCC. Builds with GCC then
    use the other implementations of the dot product, like before for the
    older versions.

    Assisted-by: Claude Fable 5.2 (Anthropic)
    Signed-off-by: Stefan Weil <sw@weilnetz.de>

diff --git a/src/arch/simddetect.cpp b/src/arch/simddetect.cpp
index cc957589..f188d67e 100644
--- a/src/arch/simddetect.cpp
+++ b/src/arch/simddetect.cpp
@@ -26,9 +26,10 @@
 #include "simddetect.h"
 #include "tprintf.h" // for tprintf

-#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 12)
-// The GNU compiler g++ fails to compile with the Accelerate framework
-// (tested with versions 10 and 11), so unconditionally disable it.
+#if !defined(__clang__) && defined(__GNUC__)
+// The GNU compiler g++ fails to compile the headers of the Accelerate
+// framework (tested with versions 10, 11 and 15), so unconditionally
+// disable it.
 #undef HAVE_FRAMEWORK_ACCELERATE
 #endif