Skip to content

Commit

Permalink
Makefile: arch command is not portable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
josephlr authored Feb 14, 2018
1 parent bd2ca31 commit 7442ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)),)
Expand Down

0 comments on commit 7442ff1

Please sign in to comment.