diff options
| author | 2025-10-27 12:13:36 +0100 | |
|---|---|---|
| committer | 2025-11-17 14:11:57 +0100 | |
| commit | 195a207cf04e94f285e02890254827b32eb5fccf (patch) | |
| tree | 07049ba2d46414b53a23e0e9649059f3045cf4d6 /scripts/build.sh | |
| parent | [chore] reduce binary size (#4519) (diff) | |
| download | gotosocial-195a207cf04e94f285e02890254827b32eb5fccf.tar.xz | |
[chore] add a 'nosqlite' and 'nopostgres' build tags to support compiling without certain database support (#4523)
following on from previous PRs, this is all in the name of reducing binary size! compiling with `nosqlite` nets a saving of ~2M, and compiling with `nopostgres` nets a saving of ~4M
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4523
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build.sh b/scripts/build.sh index a526a679c..67d1b017f 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -19,6 +19,8 @@ GO_GCFLAGS=${GO_GCFLAGS-} # - nomsgpack: removes msgpack encoding from gin (which we don't use anyway) (reduced binary size) # - stdlibjson: sets encoding/json instead of goccy/go-json for minio (reduced binary size) # - 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) # - 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) |
