Add -s -w flags when building to omit the symbol table, debug information and the DWARF table

This commit is contained in:
Daniel Carrillo 2021-11-16 19:10:19 +01:00
parent 66f3436371
commit 7bc95f98c8
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ lint: install-tools
.PHONY: build
build:
CGO_ENABLED=0 go build -ldflags="-X 'github.com/dcarrillo/whatismyip/internal/core.Version=${VERSION}'" -o whatismyip ./cmd
CGO_ENABLED=0 go build -ldflags="-s -w -X 'github.com/dcarrillo/whatismyip/internal/core.Version=${VERSION}'" -o whatismyip ./cmd
.PHONY: docker-build
docker-build: