From cb95ef0b3690e7817db34e3a7c0d7c021a7a8ccf Mon Sep 17 00:00:00 2001 From: Fabrice Date: Mon, 2 Mar 2026 17:56:41 +0100 Subject: fixing mimalloc build --- makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index b07343a..9fada52 100644 --- a/makefile +++ b/makefile @@ -16,7 +16,11 @@ SRC_DIR := $(TOP_DIR)/src MI_DIR := $(TOP_DIR)/mimalloc MI_INCLUDE_DIR := $(MI_DIR)/include +ifeq ($(RELEASE),1) MI_O := $(MI_DIR)/mimalloc.o +else +MI_O := $(MI_DIR)/mimalloc-debug.o +endif VOIDC_CXX := $(SRC_DIR)/voidc.cc VOIDC_O := $(VOIDC_CXX:.cc=.o) @@ -37,10 +41,11 @@ MI_FLAGS := -G"Unix Makefiles" -DCMAKE_C_COMPILER=$(CC) \ ifeq ($(RELEASE),1) CXX_FLAGS += -flto=auto -O2 - MI_FLAGS += -DMI_DEBUG=0 + MI_FLAGS += -DCMAKE_BUILD_TYPE=Release -DMI_DEBUG=OFF + LD_FLAGS += -flto=auto -O2 else - CCXX_FLAGS += -g3 - MI_FLAGS += -DMI_DEBUG=2 + CXX_FLAGS += -g3 + MI_FLAGS += -DCMAKE_BUILD_TYPE=Debug -DMI_DEBUG_INTERNAL=ON endif # ====== Rules ====== # -- cgit v1.2.3