From d614db5436ebb45be3dc6143c52fde9102dd7bb8 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 28 Nov 2022 16:22:22 -0500 Subject: [PATCH] Use more readable syntax for checking "aarch64" and "arm64" CPUs. --- arch.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch.mk b/arch.mk index 70fdefd0..a93cb92e 100644 --- a/arch.mk +++ b/arch.mk @@ -3,7 +3,10 @@ MACHINE := $(shell $(CC) -dumpmachine) ifneq (,$(findstring x86_64-,$(MACHINE))) ARCH_X64 := 1 ARCH_CPU := x64 -else ifneq (,$(findstring arm64-,$(MACHINE))$(findstring aarch64-,$(MACHINE))) +else ifneq (,$(findstring arm64-,$(MACHINE))) + ARCH_ARM64 := 1 + ARCH_CPU := arm64 +else ifneq (,$(findstring aarch64-,$(MACHINE))) ARCH_ARM64 := 1 ARCH_CPU := arm64 else