[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41221: Use Go build tags to reduce PT binary sizes

morgan (@morgan) git at gitlab.torproject.org
Wed Aug 21 18:45:36 UTC 2024



morgan pushed to branch main at The Tor Project / Applications / tor-browser-build


Commits:
9f4afa27 by Cecylia Bocovich at 2024-08-21T12:04:24-04:00
Bug 41221: Use Go build tags to reduce PT binary sizes

- - - - -


2 changed files:

- projects/conjure/build
- projects/snowflake/build


Changes:

=====================================
projects/conjure/build
=====================================
@@ -18,7 +18,7 @@ cd /var/tmp/build/[% project %]-[% c('version') %]
 tar -xf $rootdir/[% c('input_files_by_name/go_vendor') %]
 
 cd client
-go build -ldflags '-s'
+go build -ldflags '-s' -tags 'protoreflect,nacl'
 cp -a client[% IF c("var/windows") %].exe[% END %] $distdir/conjure-client[% IF c("var/windows") %].exe[% END %]
 
 cd ..


=====================================
projects/snowflake/build
=====================================
@@ -18,7 +18,7 @@ cd /var/tmp/build/[% project %]-[% c('version') %]
 tar -xf $rootdir/[% c('input_files_by_name/go_vendor') %]
 
 cd client
-go build -ldflags '-s'
+go build -ldflags '-s' -tags 'nopshufb,noasm,packetioSizeHardlimit,purego,safe,appengine,disableunsafe'
 cp -a client[% IF c("var/windows") %].exe[% END %] $distdir/snowflake-client[% IF c("var/windows") %].exe[% END %]
 
 cd ..



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/9f4afa27a901a2a0a8e66020bef2e618b6c2084a

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/9f4afa27a901a2a0a8e66020bef2e618b6c2084a
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240821/68a15146/attachment-0001.htm>


More information about the tor-commits mailing list