makefile: fix `aarch64` architecture detection, add some comments (#7504)

pull/7509/head
spaceface 2020-12-23 16:20:49 +01:00 committed by GitHub
parent a6e6c48c36
commit 6f5c1f060c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -60,20 +60,20 @@ else
ifneq ($(filter x86%,$(TCCARCH)),) ifneq ($(filter x86%,$(TCCARCH)),)
TCCARCH := i386 TCCARCH := i386
else else
ifeq ($(_ARCH),arm64) ifeq ($(TCCARCH),aarch64)
TCCARCH := arm64
else
ifeq ($(_ARCH),aarch64)
TCCARCH := arm64 TCCARCH := arm64
else else
ifneq ($(filter arm%,$(TCCARCH)),) ifneq ($(filter arm%,$(TCCARCH)),)
TCCARCH := arm TCCARCH := arm
endif # otherwise, just use the arch name
endif endif
endif endif
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) TCCBRANCH := thirdparty-$(TCCOS)-$(TCCARCH)
all: latest_vc latest_tcc all: latest_vc latest_tcc