From 9ec8d6d9dc03791f6ab1e3ad108c8d705d355696 Mon Sep 17 00:00:00 2001 From: Ren Kararou Date: Sat, 25 Jan 2025 20:20:37 -0600 Subject: fix memory leak in main loop; fix memory leak in handlers.c --- makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'makefile') diff --git a/makefile b/makefile index c7d9caf..a4cec5a 100644 --- a/makefile +++ b/makefile @@ -1,6 +1,11 @@ CC:=clang +ifeq ($(DEBUG),1) +CFLAGS:=-march=native -fsanitize=address -funroll-loops -Wall -Wextra -Werror -O1 +LDFLAGS:=-lpthread +else CFLAGS:=-march=native -O3 -funroll-loops -Wall -Wextra -Werror LDFLAGS:=-flto=thin -lpthread +endif ifeq ($(shell uname),SunOS) CC = gcc -- cgit 1.4.1-2-gfad0