summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-10-25 21:56:37 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-10-25 21:56:37 +0200
commit396b10dd5e206462ebeab5fed368ba3ae25c6a51 (patch)
tree9d3c759298de673fb6d778b8bbeae4bec2174a9b /build.sh
parenta4c261c6ee3940099e653a6f448dc952dfd5899f (diff)
Better benchmarking, some small optimizations
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index b8e4fa9..a8b26e8 100755
--- a/build.sh
+++ b/build.sh
@@ -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")