Skip to content

Commit 96f69b8

Browse files
chore: set slim tag when compiling coder-vpn.dylib (#18001)
``` $ du -sh before.dylib after.dylib 35M before.dylib 30M after.dylib ```
1 parent b4daf36 commit 96f69b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/build_go.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ fi
144144
# We use ts_omit_aws here because on Linux it prevents Tailscale from importing
145145
# github.com/aws/aws-sdk-go-v2/aws, which adds 7 MB to the binary.
146146
TS_EXTRA_SMALL="ts_omit_aws,ts_omit_bird,ts_omit_tap,ts_omit_kube"
147-
if [[ "$slim" == 0 ]]; then
148-
build_args+=(-tags "embed,$TS_EXTRA_SMALL")
149-
else
147+
if [[ "$slim" == 1 || "$dylib" == 1 ]]; then
150148
build_args+=(-tags "slim,$TS_EXTRA_SMALL")
149+
else
150+
build_args+=(-tags "embed,$TS_EXTRA_SMALL")
151151
fi
152152
if [[ "$agpl" == 1 ]]; then
153153
# We don't use a tag to control AGPL because we don't want code to depend on

0 commit comments

Comments
 (0)