diff options
| author | ruki <[email protected]> | 2017-12-11 22:42:38 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-12-11 10:15:50 +0800 |
| commit | 9c2bf2f28fe56a74758ee14efe33cbca6a781d8b (patch) | |
| tree | 4e4aaeea961bfcb6024b90f35d3cb935d234bd3c | |
| parent | 486306c4368b8e2bc352cb7f2da7e8e1e38ba3f7 (diff) | |
improve makefile for arch detect
| -rw-r--r-- | core/makefile | 1 | ||||
| -rw-r--r-- | makefile | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/core/makefile b/core/makefile index 252fc852a..cf14faee7 100644 --- a/core/makefile +++ b/core/makefile @@ -170,6 +170,7 @@ ARCH :=$(if $(findstring android,$(PLAT)),armv7,$(ARCH)) ifeq ($(PLAT),linux) ARCHSTR := $(shell uname -m) ARCH := $(if $(findstring aarch64,$(ARCHSTR)),arm64,$(ARCH)) +ARCH := $(if $(findstring arm64,$(ARCHSTR)),arm64,$(ARCH)) ARCH := $(if $(findstring armv7,$(ARCHSTR)),armv7,$(ARCH)) ARCH := $(if $(findstring arm,$(ARCHSTR)),arm,$(ARCH)) endif @@ -32,6 +32,7 @@ ARCH :=$(if $(findstring android,$(PLAT)),armv7,$(ARCH)) ifeq ($(PLAT),linux) ARCHSTR := $(shell uname -m) ARCH := $(if $(findstring aarch64,$(ARCHSTR)),arm64,$(ARCH)) +ARCH := $(if $(findstring arm64,$(ARCHSTR)),arm64,$(ARCH)) ARCH := $(if $(findstring armv7,$(ARCHSTR)),armv7,$(ARCH)) ARCH := $(if $(findstring arm,$(ARCHSTR)),arm,$(ARCH)) endif |
