From 6f5c1f060c4443c4eac8b530a4f5c07806a42f87 Mon Sep 17 00:00:00 2001 From: spaceface Date: Wed, 23 Dec 2020 16:20:49 +0100 Subject: [PATCH] makefile: fix `aarch64` architecture detection, add some comments (#7504) --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a1da30a3fa..b42a4dd23c 100644 --- a/Makefile +++ b/Makefile @@ -60,20 +60,20 @@ else ifneq ($(filter x86%,$(TCCARCH)),) TCCARCH := i386 else -ifeq ($(_ARCH),arm64) - TCCARCH := arm64 -else -ifeq ($(_ARCH),aarch64) +ifeq ($(TCCARCH),aarch64) TCCARCH := arm64 else ifneq ($(filter arm%,$(TCCARCH)),) TCCARCH := arm -endif +# otherwise, just use the arch name endif endif endif endif +# note that a branch may not exist yet for the user's system configuration, +# in that case they'll get an error from git while cloning it. +# TODO: print a pretty error ourselves in that case, and ask the user to open a feature request TCCBRANCH := thirdparty-$(TCCOS)-$(TCCARCH) all: latest_vc latest_tcc