Browse Source

Use more readable syntax for checking "aarch64" and "arm64" CPUs.

tags/v2.2.1
Andrew Belt 1 year ago
parent
commit
d614db5436
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      arch.mk

+ 4
- 1
arch.mk View File

@@ -3,7 +3,10 @@ MACHINE := $(shell $(CC) -dumpmachine)
ifneq (,$(findstring x86_64-,$(MACHINE))) ifneq (,$(findstring x86_64-,$(MACHINE)))
ARCH_X64 := 1 ARCH_X64 := 1
ARCH_CPU := x64 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_ARM64 := 1
ARCH_CPU := arm64 ARCH_CPU := arm64
else else


Loading…
Cancel
Save