Skip to content

Commit

Permalink
make: add -trimpath to release build
Browse files Browse the repository at this point in the history
  • Loading branch information
dmke committed Jan 18, 2021
1 parent 9c9f573 commit 7b68773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DEPS = $(shell find . -type f -name '*.go')
LDFLAGS = -s -w

export GO111MODULE=on
build = GOOS=$(1) GOARCH=$(2) go build -ldflags "$(LDFLAGS)" -o $(TARGET)_$(1)_$(2)$(3)
build = GOOS=$(1) GOARCH=$(2) go build -ldflags "$(LDFLAGS)" -trimpath -o $(TARGET)_$(1)_$(2)$(3)

# build a local version for tests, simply run make
mattercheck: $(DEPS)
Expand Down

0 comments on commit 7b68773

Please sign in to comment.