diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-10-28 17:44:57 +0100 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-10-28 17:44:57 +0100 |
| commit | 9ee76c20c0d093d5adac2dcc3b275b53b879c369 (patch) | |
| tree | 7f21652a42d96f2ede7822950cbbf9c044ca43ca /build.sh | |
| parent | 3b7621981b56a51756badac70034f68366878df9 (diff) | |
small optimizations of sprite evaluation in ppu_render_pixel
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,9 +1,16 @@ #!/bin/bash +# Use project-local GCC if available, otherwise system GCC +TOOLCHAIN_GCC="./toolchain/gcc-15.2.0/bin/gcc" +if [ -f "${TOOLCHAIN_GCC}" ]; then + CC="${TOOLCHAIN_GCC}" +else + CC=gcc +fi + # Set the project name here PROJECT_NAME="mknes" # Change this for each new project -CC=gcc WIN_CC=x86_64-w64-mingw32-gcc # Base configuration common to all builds @@ -52,8 +59,7 @@ case "$BUILD_TYPE" in # -pg # for gprof ;; "release") - # CFLAGS+="-s -Wl,--strip-all -O2 " - CFLAGS+=" -O2 " + CFLAGS+="-s -Wl,--strip-all -O2 " ;; "profile") CFLAGS+="-O2 -fprofile-generate -ftest-coverage -DBENCHMARK " |
