add loong64 support for go-fastdfs

Signed-off-by: Wenlong Zhang <zhangwenlong@loongson.cn>
This commit is contained in:
Wenlong Zhang 2023-08-10 14:11:46 +08:00 committed by 小张
parent 12685b9c5f
commit 876ae9526b

View File

@ -24,7 +24,8 @@ PROTO_SRC_PATH =${ROOT_DIR}/rpc
ALL_LINUX = linux-amd64 \
linux-386 \
linux-arm \
linux-arm64
linux-arm64 \
linux-loong64
ALL = $(ALL_LINUX) \
darwin-amd64 \
@ -50,4 +51,4 @@ vet:
go vet main.go
linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${BUILD_DIR}/${APP_NAME} -ldflags "-w -s -X 'main.VERSION=${VERSION_MASTER}' -X 'main.GO_VERSION=${GO_VERSION}' -X 'main.GIT_VERSION=${COMMIT}' -X 'main.BUILD_TIME=${BUILDDATE}'" main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ${BUILD_DIR}/${APP_NAME} -ldflags "-w -s -X 'main.VERSION=${VERSION_MASTER}' -X 'main.GO_VERSION=${GO_VERSION}' -X 'main.GIT_VERSION=${COMMIT}' -X 'main.BUILD_TIME=${BUILDDATE}'" main.go