Skip to content

Commit

Permalink
Recognize ARM64 (aka aarch64) in the cross-compile mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Nov 28, 2020
1 parent a4b23f3 commit 3fad847
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.defs
Expand Up @@ -230,6 +230,8 @@ arm_macros= __arm__ __thumb__
arm6_macros= __ARM_ARCH_6__
arm7_macros= __ARM_ARCH_7__

arm64_macros= __AARCH64EL__

ppc_macros= __powerpc __powerpc__ __POWERPC__ __ppc__ _ARCH_PPC
ppc64_macros= __ppc64__ _ARCH_PPC64

Expand Down Expand Up @@ -286,6 +288,8 @@ endif # mips64_macros

else ifneq ($(strip $(filter $(alpha_macros), $(predef_macros))),)
CC_ARCH=alpha
else ifneq ($(strip $(filter $(arm64_macros), $(predef_macros))),)
CC_ARCH=aarch64
else

$(warn "Unknown target compiler architecture")
Expand Down

0 comments on commit 3fad847

Please sign in to comment.