From 195a207cf04e94f285e02890254827b32eb5fccf Mon Sep 17 00:00:00 2001 From: kim Date: Mon, 27 Oct 2025 12:13:36 +0100 Subject: [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 Co-committed-by: kim --- scripts/build.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') 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) -- cgit v1.3