Skip to content

Commit 067ac25

Browse files
committed
Use 'uname -m' instead of 'uname -p' when determining architecture
'uname -p' on macOS reports i386, whereas 'uname -m' reports x86_64 Signed-off-by: Javier Romero <[email protected]>
1 parent 157daa1 commit 067ac25

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ else
4545
ifeq ($(shell uname -s),Darwin)
4646
HUGO_OS:=macOS
4747
endif
48-
UNAME_P:=$(shell uname -p)
49-
ifneq ($(filter %64,$(UNAME_P)),)
48+
UNAME_M:=$(shell uname -m)
49+
ifneq ($(filter %64,$(UNAME_M)),)
5050
HUGO_ARCH:=64bit
5151
endif
52-
ifneq ($(filter arm%,$(UNAME_P)),)
52+
ifneq ($(filter arm%,$(UNAME_M)),)
5353
HUGO_ARCH:=ARM64
5454
endif
5555
endif

0 commit comments

Comments
 (0)