notes on go build options
This commit is contained in:
parent
d07ba68cd1
commit
d7e37d3743
2
build.go
2
build.go
|
@ -106,6 +106,8 @@ func buildPackage(repo *gitpb.Repo) (bool, error) {
|
||||||
// add some standard golang flags
|
// add some standard golang flags
|
||||||
var ldflags string
|
var ldflags string
|
||||||
if argv.Release {
|
if argv.Release {
|
||||||
|
// * -w: Omit the DWARF symbol table.
|
||||||
|
// * -s: Omit the symbol table and debug information.
|
||||||
ldflags += "-s -w "
|
ldflags += "-s -w "
|
||||||
}
|
}
|
||||||
ldflags += "-X main.VERSION=" + version + " "
|
ldflags += "-X main.VERSION=" + version + " "
|
||||||
|
|
Loading…
Reference in New Issue