perf: remove debuginfo from release binary
This commit is contained in:
parent
47b9dba690
commit
9cc9af1759
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
|||||||
NAME = multini
|
NAME = multini
|
||||||
VERSION = dev_$(shell date +%F_%T)
|
VERSION = dev_$(shell date +%F_%T)
|
||||||
GOCMD = go
|
GOCMD = go
|
||||||
LDFLAGS := "$(LDFLAGS) -X 'main.Version=$(VERSION)'"
|
LDFLAGS := "$(LDFLAGS) -s -w -X 'main.Version=$(VERSION)'"
|
||||||
GOBUILD = $(GOCMD) build -ldflags=$(LDFLAGS)
|
GOBUILD = $(GOCMD) build -ldflags=$(LDFLAGS)
|
||||||
SRCMAIN = ./cmd/$(NAME)
|
SRCMAIN = ./cmd/$(NAME)
|
||||||
SRCDOC = ./doc
|
SRCDOC = ./doc
|
||||||
|
Loading…
Reference in New Issue
Block a user