forked from coop-cloud/abra
build: reduce binary size with optimisation flags
Part of https://git.autonomic.zone/coop-cloud/go-abra/issues/4.
This commit is contained in:
parent
16514b3151
commit
c9ba7aef20
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ ABRA := ./cmd/abra
|
||||
COMMIT := $(shell git rev-list -1 HEAD)
|
||||
GOPATH := $(shell go env GOPATH)
|
||||
VERSION := $(shell cat ./version)
|
||||
LDFLAGS := "-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)'"
|
||||
LDFLAGS := "-X 'main.Commit=$(COMMIT)' -X 'main.Version=$(VERSION)' -s -w"
|
||||
|
||||
all: run test install build clean format check static
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user