chore: add trimpath and ldflags to build command
This commit is contained in:
parent
8a02249845
commit
e5c86a1528
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
|
@ -1,6 +1,7 @@
|
|||
GO = go
|
||||
GOFLAGS = -trimpath -ldflags="-s -w"
|
||||
|
||||
.PHONY: tetris
|
||||
|
||||
tetris :
|
||||
$(GO) build tetris.go
|
||||
$(GO) build $(GOFLAGS) tetris.go
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue