Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
fix(sha256): build the ARMv8 SHA2 path with GCC 11
Martin Vogela67a3f417ab1
diff --git a/src/foundation/sha256.c b/src/foundation/sha256.cindex b5f6bcd6d..1f1b39391 100644--- a/src/foundation/sha256.c+++ b/src/foundation/sha256.c@@ -33,7 +33,11 @@#if defined(__clang__)#define SHA256_ARM_TARGET __attribute__((target("sha2")))#else-#define SHA256_ARM_TARGET __attribute__((target("+sha2")))+/* "+crypto", not "+sha2": GCC 11's arm_neon.h declares the SHA2 intrinsics+ * under "+nothing+crypto", so a "+sha2" function cannot inline them ("target+ * specific option mismatch"). "+crypto" implies "+sha2" on every GCC; the+ * function uses only SHA2 instructions and the runtime HWCAP check gates it. */+#define SHA256_ARM_TARGET __attribute__((target("+crypto")))#endif#elif defined(__x86_64__) && (defined(__clang__) || defined(__GNUC__))#define SHA256_HW_X86 1