From a4c261c6ee3940099e653a6f448dc952dfd5899f Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Thu, 16 Oct 2025 04:19:32 +0200 Subject: optimized, but bug with rasterdemos --- build.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'build.sh') 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 -- cgit v1.2.3