From c93e6a00d2e3b12cd7758d85e0536064a40d3a65 Mon Sep 17 00:00:00 2001 From: Steffen Date: Mon, 14 Dec 2020 21:27:19 +0800 Subject: [PATCH] on s390x, only compile compile release for s390x (#9601) --- GNUmakefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index e249ffbb7..1ab8ccf61 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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