diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-10-25 21:56:37 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-10-25 21:56:37 +0200 |
| commit | 396b10dd5e206462ebeab5fed368ba3ae25c6a51 (patch) | |
| tree | 9d3c759298de673fb6d778b8bbeae4bec2174a9b /build.sh | |
| parent | a4c261c6ee3940099e653a6f448dc952dfd5899f (diff) | |
Better benchmarking, some small optimizations
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -53,17 +53,18 @@ case "$BUILD_TYPE" in ;; "release") # CFLAGS+="-s -Wl,--strip-all -O2 " - CFLAGS+="-g -O2 " + CFLAGS+=" -O2 " ;; "profile") - CFLAGS+="-O2 -fprofile-generate -ftest-coverage " + CFLAGS+="-O2 -fprofile-generate -ftest-coverage -DBENCHMARK " ;; "profile_release") # CFLAGS+="-s -Wl,--strip-all -O2 -fprofile-use " - CFLAGS+="-g -O2 -fprofile-use " + CFLAGS+="-g -O2 -fprofile-use -DBENCHMARK " ;; "debug") - CFLAGS+="-g -O0 -DTIMER_DEBUG " + CFLAGS+="-g -O0 " +# -DTIMER_DEBUG " LDFLAGS+="-fno-pie -no-pie " ;; "coverage") |
