From f7c99758be31f659403ee17dd6c74ba100100c85 Mon Sep 17 00:00:00 2001 From: kim Date: Wed, 29 Oct 2025 13:44:23 +0100 Subject: [chore] add a 'nos3' build tag to support compiling without S3 storage support (#4522) on amd64 this reduces binary size from 75M (compiled with `'nootel'`) down to 73M (compiled with `'nootel nos3'`) Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4522 Co-authored-by: kim Co-committed-by: kim --- scripts/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/build.sh b/scripts/build.sh index 67d1b017f..d05b71419 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -21,9 +21,10 @@ GO_GCFLAGS=${GO_GCFLAGS-} # - nootel: disables compiling-in otel support (reduced binary size) # - nosqlite: disables compiling-in sqlite support (reduced binary size) # - nopostgres: disables compiling-in postgres support (reduced binary size) +# - nos3: disables compiling-in S3 storage support (reduced binary size) # - noerrcaller: disables caller function prefix in errors (slightly better performance, at cost of err readability) -# - debug: enables /debug/pprof endpoint (adds debug, at performance cost) -# - debugenv: enables /debug/pprof endpoint if DEBUG=1 env during runtime (adds debug, at performance cost) +# - debug: enables /debug/pprof endpoint (adds debug, at mild performance cost) +# - debugenv: enables /debug/pprof endpoint if DEBUG=1 env during runtime (adds debug, at mild performance cost) # - moderncsqlite3: reverts to using the C-to-Go transpiled SQLite driver (disables the WASM-based SQLite driver) # # - nowasmffmpeg: [UNSUPPORTED] removes WebAssembly ffmpeg, ffprobe, relying instead on host-installed ffmpeg, ffprobe binaries. -- cgit v1.2.3