Skip to content

Commit fe32251

Browse files
MMulthauptdragetd
authored andcommitted
Strip DWARF symbols from binary to reduce file size
1 parent b7f415c commit fe32251

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
@@ -23,7 +23,7 @@ GITDESC := $(shell git describe --tags 2> /dev/null || echo unav
2323
LAUNCHER_VERSION := $(shell git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*" 2> /dev/null || echo unavailable)
2424
GITBRANCH := $(shell git symbolic-ref -q --short HEAD || echo unknown)
2525
GITHASH := $(shell git rev-parse --short=8 --verify HEAD || echo unknown)
26-
LDFLAGS := -s -X main.gitDescription=${GITDESC} -X main.gitBranch=${GITBRANCH} -X main.gitHash=${GITHASH} -X "github.com/setlog/trivrost/cmd/launcher/launcher.buildTime=$(shell date -u "+%Y-%m-%d %H:%M:%S UTC")"
26+
LDFLAGS := -s -w -X main.gitDescription=${GITDESC} -X main.gitBranch=${GITBRANCH} -X main.gitHash=${GITHASH} -X "github.com/setlog/trivrost/cmd/launcher/launcher.buildTime=$(shell date -u "+%Y-%m-%d %H:%M:%S UTC")"
2727

2828
# Assume version is part of the tag. If not, default to v0.0.0
2929
VERSIONOK := $(shell echo -n "${LAUNCHER_VERSION}" | grep -E ^v[0-9]+\.[0-9]+\.[0-9]+$$ && echo ok)

0 commit comments

Comments
 (0)