mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Use -s -w to reduce the final binary size when running 'make install'
This commit is contained in:
parent
dc50bce2ed
commit
4a1caf6e7c
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ contrib_check:
|
||||
|
||||
install:
|
||||
go clean
|
||||
go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)"
|
||||
go install -ldflags="-s -w -X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)"
|
||||
which wtf
|
||||
|
||||
run: build
|
||||
|
Loading…
x
Reference in New Issue
Block a user