增加 Stripped build.

Signed-off-by: chen.yang <chen.yang@yuzhen-iot.com>
This commit is contained in:
chen.yang 2021-11-12 19:56:54 +08:00
parent c20a975106
commit 64fbc46223
1 changed files with 2 additions and 0 deletions

View File

@ -52,4 +52,6 @@ GOOS=linux GOARCH=arm GOARM=7 go build
```bash
# Build for arm
CGO_ENABLED=1 GOOS=linux GOARCH=arm CC=arm-linux-gnueabi-gcc go build
# Build and Stripped
GOOS=linux GOARCH=arm go build -ldflags "-s"
```