perf: remove debuginfo from release binary

This commit is contained in:
GenZmeY 2020-12-11 15:38:12 +03:00
parent 47b9dba690
commit 9cc9af1759

View File

@ -1,7 +1,7 @@
NAME = multini
VERSION = dev_$(shell date +%F_%T)
GOCMD = go
LDFLAGS := "$(LDFLAGS) -X 'main.Version=$(VERSION)'"
LDFLAGS := "$(LDFLAGS) -s -w -X 'main.Version=$(VERSION)'"
GOBUILD = $(GOCMD) build -ldflags=$(LDFLAGS)
SRCMAIN = ./cmd/$(NAME)
SRCDOC = ./doc