diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-10-16 17:37:18 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-10-16 17:37:18 +0300 |
| commit | 7ad6716b5c4dcf8c1c2ce8059884d26fa7c32908 (patch) | |
| tree | 8079194d6fec74e7ecc72b3873975be36e000c96 /Makefile | |
| parent | 3f85d1168a9cfa10e7592ebf8870cc658ea70879 (diff) | |
| download | conts-7ad6716b5c4dcf8c1c2ce8059884d26fa7c32908.tar.gz conts-7ad6716b5c4dcf8c1c2ce8059884d26fa7c32908.zip | |
add -O2 to default CFLAGS, speeds up testing.
+ If a better debugging experience is required, just manually set CFLAGS
on the command line
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |
