summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorPeter Fors <peter.fors@mindkiller.com>2025-04-09 13:02:18 +0200
committerPeter Fors <peter.fors@mindkiller.com>2025-04-09 13:02:18 +0200
commit6d7f00f7a662845905c3d8cc99351c328d02e802 (patch)
treebcdbce8cf685b6d0afa66d365af38c78e50df543 /build.sh
parentc9bd7fecdb5d6c8954cf31efef910ed734386c70 (diff)
Last few optimizations to ppu_render_pixel, down to 1.59ns per pixel
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index b8f6a4e..fbe27e9 100755
--- a/build.sh
+++ b/build.sh
@@ -8,7 +8,7 @@ CFLAGS="-std=gnu11 "
CFLAGS+="-mbmi2 "
CFLAGS+="-mfunction-return=keep "
CFLAGS+="-mindirect-branch=keep "
-CFLAGS+="-fwrapv -ffast-math -fno-trapping-math -fwhole-program "
+CFLAGS+="-fwrapv -ffast-math -fno-trapping-math -fwhole-program -fvisibility=hidden "
CFLAGS+="-fno-stack-protector -fno-PIE -no-pie -fno-strict-aliasing -ffunction-sections -fdata-sections "
# CFLAGS+="-fno-exceptions -fno-rtti -fno-use-cxa-atexit "
CFLAGS+="-fno-non-call-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables "
@@ -16,7 +16,7 @@ CFLAGS+="-Wall -Wextra "
CFLAGS+="-Wno-unused-parameter -Wno-sign-compare -Wno-trigraphs -Wno-maybe-uninitialized "
CFLAGS+="-Wno-unused-variable -Wno-unused-const-variable -Wno-unused-function -Wno-write-strings -Wno-missing-field-initializers "
-LDFLAGS="-Wl,--gc-sections "
+LDFLAGS="-Wl,--gc-sections -Wl,--as-needed "
# Base include paths (common for all platforms)
INCLUDE_PATHS="-Ibase -I.."