diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-04-28 22:19:43 +0200 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-04-28 22:19:43 +0200 |
| commit | e08b851c79ae9a7fc0a2066e49110dc7fb426bce (patch) | |
| tree | c8458daee7201983903cf04413ff9a6072084028 /build.sh | |
| parent | c40f7421d8c1ccbe008dbd2191c6642625ae4b83 (diff) | |
reverted rewrite of ppu, optimized what functions should be forced inline, gained ~2.5% performance
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -40,11 +40,18 @@ fi case "$BUILD_TYPE" in "normal") CFLAGS+=" -ggdb -fno-omit-frame-pointer -O2 -DDEBUG_INTERNAL" +# -pg # for gprof # -fsanitize=address,undefined,alignment,object-size,unreachable -fno-omit-frame-pointer" ;; "release") CFLAGS+=" -s -Wl,--strip-all -O2" ;; + "profile") + CFLAGS+=" -g -O2 -fprofile-generate" + ;; + "profile_release") + CFLAGS+=" -s -Wl,--strip-all -O2 -fprofile-use" + ;; "debug") CFLAGS+=" -g -O0" LDFLAGS+=" -fno-pie -no-pie" |
