notes on go build options

This commit is contained in:
Jeff Carr 2025-09-25 14:05:09 -05:00
parent d07ba68cd1
commit d7e37d3743
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ func buildPackage(repo *gitpb.Repo) (bool, error) {
// add some standard golang flags
var ldflags string
if argv.Release {
// * -w: Omit the DWARF symbol table.
// * -s: Omit the symbol table and debug information.
ldflags += "-s -w "
}
ldflags += "-X main.VERSION=" + version + " "