Skip to content

Commit 8764027

Browse files
committed
chore: optimize build flags in Makefile for reduced binary size
1 parent 96baa6c commit 8764027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MAIN_PATH=./cmd/memotty
44
VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
55
COMMIT=$(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown")
66
BUILD_TIME=$(shell date +%Y-%m-%d_%H:%M:%S)
7-
LDFLAGS=-ldflags "-X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.buildTime=$(BUILD_TIME)"
7+
LDFLAGS=-ldflags "-X main.version=$(VERSION) -X main.commit=$(COMMIT) -X main.buildTime=$(BUILD_TIME) -s -w"
88

99
.PHONY: help
1010
help:

0 commit comments

Comments
 (0)