From 9cc9af1759c18da3c598402d233b4c5ececa4a6b Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Fri, 11 Dec 2020 15:38:12 +0300 Subject: [PATCH] perf: remove debuginfo from release binary --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e52a2fd..0128f40 100644 --- a/Makefile +++ b/Makefile @@ -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