From fca69d200b2111e6c005afba13fe0b5c8e5aedb4 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 4 Jun 2025 15:19:19 +0200 Subject: [PATCH] fixup! mimalloc: offer a build-time option to enable it To make `MIMALLOC_SHOW_STATS` work (setting this environment variable will print out statistics about the allocations in the process just before it terminates), we need to use mimalloc's "Fiber" based process termination handling that was introduced in aa881733 (reorganize primitives for process initialization; use special data segment on Windows for thread termination by default on Windows now (issue #869), 2024-10-21): It requires UCRT which we do not use in Git for Windows' GCC-based builds. Signed-off-by: Johannes Schindelin --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 001fccc8f6..89275cbf6c 100644 --- a/Makefile +++ b/Makefile @@ -2195,6 +2195,7 @@ ifdef USE_MIMALLOC $(MIMALLOC_OBJS): COMPAT_CFLAGS += -DBANNED_H $(MIMALLOC_OBJS): COMPAT_CFLAGS += \ + -DMI_WIN_USE_FLS \ -Wno-attributes \ -Wno-unknown-pragmas \ -Wno-unused-function \