summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-10-16 04:19:32 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-10-16 04:19:32 +0200
commita4c261c6ee3940099e653a6f448dc952dfd5899f (patch)
tree7b14cfde56d735259f6e852a6d337228e00db0f5 /build.sh
parentdcaf169691cfbb865241e96a4786af0862424701 (diff)
optimized, but bug with rasterdemos
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/build.sh b/build.sh
index b854c3e..b8e4fa9 100755
--- a/build.sh
+++ b/build.sh
@@ -52,17 +52,18 @@ case "$BUILD_TYPE" in
# -pg # for gprof
;;
"release")
- CFLAGS+="-s -Wl,--strip-all -O2 "
+ # CFLAGS+="-s -Wl,--strip-all -O2 "
+ CFLAGS+="-g -O2 "
;;
"profile")
CFLAGS+="-O2 -fprofile-generate -ftest-coverage "
;;
"profile_release")
# CFLAGS+="-s -Wl,--strip-all -O2 -fprofile-use "
- CFLAGS+="-O2 -fprofile-use "
+ CFLAGS+="-g -O2 -fprofile-use "
;;
"debug")
- CFLAGS+="-g -O0 "
+ CFLAGS+="-g -O0 -DTIMER_DEBUG "
LDFLAGS+="-fno-pie -no-pie "
;;
"coverage")
@@ -90,8 +91,8 @@ set -e
) &
# Build Windows version
-# (
-# $WIN_CC $CFLAGS ${PROJECT_NAME}.c -o ${PROJECT_NAME}.exe $INCLUDE_PATHS $WINDOWS_INCLUDE $LDFLAGS $WINDOWS_LIBS
-# ) &
+#(
+# $WIN_CC $CFLAGS ${PROJECT_NAME}.c -o ${PROJECT_NAME}.exe $INCLUDE_PATHS $WINDOWS_INCLUDE $LDFLAGS $WINDOWS_LIBS
+#) &
wait