From 316dfa10e75f6dde85f4730d05e34489d8adbf78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20LUDWIG?= Date: Fri, 4 Aug 2023 19:58:41 +0200 Subject: [PATCH] chore: improve Makefile to use -fsanitize=address -fsanitize=undefined gcc flags Fixes #5 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ae5c895..0cea472 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ LIBRARY_NAME = libcproject CC = gcc -CC_FLAGS = -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors -O3 -I./ +CC_FLAGS = -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors -O3 -fsanitize=address -fsanitize=undefined -I./ LIB = ./build/${LIBRARY_NAME}.a LIB_CC_FLAGS = -L. -l:${LIB} LIB_SOURCES = $(wildcard lib/*.c)