diff options
| author | 2025-10-29 13:44:23 +0100 | |
|---|---|---|
| committer | 2025-11-17 14:12:03 +0100 | |
| commit | f7c99758be31f659403ee17dd6c74ba100100c85 (patch) | |
| tree | 99dc1e7e21073a45fc0284fff2867eae7dd4ee3e /scripts/build.sh | |
| parent | [chore] add a 'nosqlite' and 'nopostgres' build tags to support compiling wit... (diff) | |
| download | gotosocial-f7c99758be31f659403ee17dd6c74ba100100c85.tar.xz | |
[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 <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'scripts/build.sh')
| -rwxr-xr-x | scripts/build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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. |
