aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Richey <joerichey@google.com>2018-02-14 11:20:44 -0800
committerGitHub <noreply@github.com>2018-02-14 11:20:44 -0800
commit7442ff1144c91ba9810b66fa843baf8c1953107f (patch)
treedcd73364c8f6b62952428f8caf1b5bf8275dd255
parentbd2ca31a8d92581582e4150de53eccef99a36b3c (diff)
Makefile: arch command is not portable
According to: https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html the arch command isn't portable, so we switch to uname.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index aa82008..ee57155 100644
--- a/Makefile
+++ b/Makefile
@@ -181,7 +181,7 @@ $(BIN)/gocovmerge: $(VENDOR)
# Non-go tools downloaded from appropriate repository
PROTOC_VERSION := 3.5.1
-ARCH := $(shell arch)
+ARCH := $(shell uname -m)
ifeq (x86_64,$(ARCH))
PROTOC_ARCH := x86_64
else ifneq ($(filter i386 i686,$(ARCH)),)