增加mips架构编译脚本

This commit is contained in:
fumiama 2021-06-03 19:42:59 +08:00
parent eb901a2f73
commit 36e338e9dd

6
build_mips.sh Normal file
View File

@ -0,0 +1,6 @@
go version
mips-linux-musl-gcc -v
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GO111MODULE=auto
go mod tidy
GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=1 CC=mips-linux-musl-gcc CXX=mips-linux-musl-g++ go build -ldflags "-s -w" -o zerobot