summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-25 14:05:09 -0500
committerJeff Carr <[email protected]>2025-09-25 14:05:09 -0500
commitd7e37d3743b96e3bd1be0ae95fbf3a99354f8c1f (patch)
treeb4d2b3dfee8fd238f716d2c112f7e3d88b93db91
parentd07ba68cd119023b44f5968eb26ccf3926c047eb (diff)
notes on go build optionsv0.22.147v0.22.146v0.22.145
-rw-r--r--build.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.go b/build.go
index 4dd53f8..bf09762 100644
--- a/build.go
+++ b/build.go
@@ -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 + " "