arm 交叉编译
This commit is contained in:
parent
37594d3ad9
commit
63981f7877
2 changed files with 2 additions and 3 deletions
4
Makefile
4
Makefile
|
|
@ -184,7 +184,7 @@ hi:
|
|||
echo ${VERSION}
|
||||
|
||||
.PHONY: arm
|
||||
arm:
|
||||
arm: clean
|
||||
mkdir -p dist/release
|
||||
git clone https://github.com/YaoApp/xiang dist/release
|
||||
git clone https://github.com/YaoApp/kun dist/kun
|
||||
|
|
@ -208,7 +208,7 @@ arm:
|
|||
|
||||
# 制品
|
||||
mkdir -p dist
|
||||
CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build -v -o ../../.tmp/xiang-${VERSION}-linux-arm
|
||||
cd dist/release && CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build -v -o ../../.tmp/xiang-${VERSION}-linux-arm
|
||||
|
||||
rm -rf dist/release
|
||||
mkdir -p dist/release
|
||||
|
|
|
|||
|
|
@ -16,5 +16,4 @@ export GOPROXY="https://goproxy.cn"
|
|||
export http_proxy="socks5://192.168.199.178:1080"
|
||||
export https_proxy="socks5://192.168.199.178:1080"
|
||||
export NODE_OPTIONS="--max-old-space-size=5120"
|
||||
|
||||
export PATH=~/go/bin:$PATH
|
||||
Loading…
Add table
Reference in a new issue