build: reduce binary size with optimisation flags
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
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)
|
COMMIT := $(shell git rev-list -1 HEAD)
|
||||||
GOPATH := $(shell go env GOPATH)
|
GOPATH := $(shell go env GOPATH)
|
||||||
VERSION := $(shell cat ./version)
|
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
|
all: run test install build clean format check static
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue