From 7ad6716b5c4dcf8c1c2ce8059884d26fa7c32908 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 16 Oct 2025 17:37:18 +0300 Subject: add -O2 to default CFLAGS, speeds up testing. + If a better debugging experience is required, just manually set CFLAGS on the command line --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f773d2b..3cd6b99 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS = -g -Wall -Wextra +CFLAGS = -g -Wall -Wextra -O2 check: check-vec check-spvec check-sptree check-map # see scripts/coverage for coverage testing @@ -35,28 +35,28 @@ bench: bench-vec bench-spvec bench-sptree bench-map bench-vec: mkdir -p build - $(CC) $(CFLAGS) -O2 \ + $(CC) $(CFLAGS) \ -Iinclude -Ideps/covsrv/include \ tests/vec.c -o build/vec_opt time ./build/vec_opt 2> build/vec_bench.txt bench-spvec: mkdir -p build - $(CC) $(CFLAGS) -O2 \ + $(CC) $(CFLAGS) \ -Iinclude -Ideps/covsrv/include \ tests/spvec.c -o build/spvec_opt time ./build/spvec_opt 2> build/spvec_bench.txt bench-sptree: mkdir -p build - $(CC) $(CFLAGS) -O2 \ + $(CC) $(CFLAGS) \ -Iinclude -Ideps/covsrv/include \ tests/sptree.c -o build/sptree_opt time ./build/sptree_opt 2> build/sptree_bench.txt bench-map: mkdir -p build - $(CC) $(CFLAGS) -O2 \ + $(CC) $(CFLAGS) \ -Iinclude -Ideps/covsrv/include \ tests/map.c -o build/map_opt time ./build/map_opt 2> build/map_bench.txt -- cgit v1.2.3