[TD-3148] <feature>: make build system detect host arch. detect aarch32

This commit is contained in:
Shuduo Sang 2021-03-03 01:54:53 +08:00
parent 959220bd83
commit 637135539e
1 changed files with 2 additions and 1 deletions

View File

@ -102,10 +102,11 @@ ELSEIF (${CPUTYPE} MATCHES "x86")
ELSE ()
MESSAGE(STATUS "input cpuType unknown " ${CPUTYPE})
MESSAGE(STATUS "The current platform is " ${CMAKE_SYSTEM_PROCESSOR})
MESSAGE(STATUS "The current platform is detected as " ${CMAKE_SYSTEM_PROCESSOR})
IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
MESSAGE(STATUS "The current platform is x86")
ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "armv7l")
MESSAGE(STATUS "Set CPUTYPE to aarch32")
SET(CPUTYPE "aarch32")
ENDIF ()