优化编译

This commit is contained in:
dragon
2025-01-10 17:04:38 +08:00
parent e663684a0a
commit 9cada8facc
2 changed files with 10 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ fmt:
"$(GOPATH)/bin/gofumpt" -l -w .
gitea-pages: $(shell find . -type f -name "*.go" ) go.mod go.sum
@CGO_ENABLED=0 go build -o $@ .
@CGO_ENABLED=0 go build -ldflags="-s -w" -o $@ .
.PHONY: debug