From 36e338e9ddfb1dec278513dd05d889ee4ca3bf92 Mon Sep 17 00:00:00 2001 From: fumiama Date: Thu, 3 Jun 2021 19:42:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0mips=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_mips.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 build_mips.sh diff --git a/build_mips.sh b/build_mips.sh new file mode 100644 index 00000000..df3fc57f --- /dev/null +++ b/build_mips.sh @@ -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 \ No newline at end of file