From 051a37862c5759cda9dd63d91ccca552766313b9 Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Wed, 4 Aug 2021 23:15:16 +0200 Subject: [PATCH] [v0.98] Add compiler flags (in a different target, "strict") to detect programming errors, as suggested by #90 and #76 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 463e90d..81ac964 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,9 @@ debug: $(OUTPUT) static: CFLAGS += -static -O3 static: $(OUTPUT) +strict: CFLAGS += -O3 -Werror -fsanitize=undefined -D_FORTIFY_SOURCE=2 +strict: $(OUTPUT) + $(OUTPUT): Makefile $(SOURCE) $(HEADERS) $(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT)