aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-05-01 18:07:53 -0400
committerShav Kinderlehrer <[email protected]>2023-05-01 18:07:53 -0400
commitd5c32592251039350fb290011df9cac3e5ea9e78 (patch)
tree85feb2968d39fe087e12255181f4ff0e85e11f74 /Makefile
parent7e24ad39b1e926339cbe3ec295791d0f608a91df (diff)
downloadlat-d5c32592251039350fb290011df9cac3e5ea9e78.tar.gz
lat-d5c32592251039350fb290011df9cac3e5ea9e78.zip
Fix memory leak and NULL-check error
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 149c2ac..eaa3393 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,11 @@ ODIR:=obj
BINDIR:=build
CC:=cc
-CFLAGS:=-I$(IDIR) -Wall -Wextra -pedantic -Ofast
+# OMG SO FAST (see https://www.shlomifish.org/humour/by-others/funroll-loops/Gentoo-is-Rice.html)
+# CFLAGS:=-I$(IDIR) -Wall -Wextra -pedantic -Ofast -faggressive-loop-optimizations -funroll-all-loops -march=native
+# For a stable experience
+CFLAGS:=-I$(IDIR) -Wall -Wextra -pedantic -O2 -march=native
+
LIB:=
DEPS:=$($(IDIR)/%.h)