Skip to content

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.

Use system regex on MSYS2, TRE only for pure MinGW (CBM_USE_TRE)

Martin Vogel5f7cd226cbb8
diff --git a/src/foundation/compat_regex.c b/src/foundation/compat_regex.c
index 0ea000c3a..715ffbbe2 100644
--- a/src/foundation/compat_regex.c
+++ b/src/foundation/compat_regex.c
@@ -8,9 +8,9 @@
#include <string.h>
-#ifdef _WIN32
+#ifdef CBM_USE_TRE
-/* ── Windows: use vendored TRE ───────────────────────────────── */
+/* ── Vendored TRE regex (for environments without system <regex.h>) ── */
#include "../../vendored/tre/regex.h"
_Static_assert(sizeof(regex_t) <= 256, "cbm_regex_t opaque buffer too small for TRE regex_t");
@@ -120,4 +120,4 @@ void cbm_regfree(cbm_regex_t *r) {
regfree(re);
}
-#endif /* _WIN32 */
+#endif /* CBM_USE_TRE */