on s390x, only compile compile release for s390x (#9601)

This commit is contained in:
Steffen 2020-12-14 21:27:19 +08:00 committed by GitHub
parent 348c814611
commit c93e6a00d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
SHELL = bash
PROJECT_ROOT := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
THIS_OS := $(shell uname | cut -d- -f1)
THIS_ARCH := $(shell uname -m)
GIT_COMMIT := $(shell git rev-parse HEAD)
GIT_DIRTY := $(if $(shell git status --porcelain),+CHANGES)
@ -45,6 +46,11 @@ ALL_TARGETS += linux_386 \
endif
# On s390x architecture, we only build for s390x
ifeq (s390x,$(THIS_ARCH))
ALL_TARGETS = linux_s390x
endif
# On MacOS, we only build for MacOS
ifeq (Darwin,$(THIS_OS))
ALL_TARGETS += darwin_amd64