From 8f07fc1ba3994d8d88efc04835fae2ba4d8f5d72 Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Wed, 3 Mar 2021 11:24:45 +0800 Subject: [PATCH] [TD-3148] : make build system detect host arch. --- cmake/platform.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/platform.inc b/cmake/platform.inc index de70e8a345..dcd0183e27 100755 --- a/cmake/platform.inc +++ b/cmake/platform.inc @@ -79,7 +79,7 @@ ELSE() ENDIF () IF ("${CPUTYPE}" STREQUAL "") - MESSAGE(STATUS "The current platform is detected as " ${CMAKE_SYSTEM_PROCESSOR}) + MESSAGE(STATUS "The current platform " ${CMAKE_SYSTEM_PROCESSOR} " is detected") IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(amd64)|(AMD64)") MESSAGE(STATUS "The current platform is amd64") @@ -92,11 +92,13 @@ IF ("${CPUTYPE}" STREQUAL "") ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "armv7l") MESSAGE(STATUS "Set CPUTYPE to aarch32") SET(CPUTYPE "aarch32") + MESSAGE(STATUS "Set CPUTYPE to aarch32") SET(TD_LINUX TRUE) SET(TD_LINUX_32 FALSE) SET(TD_ARM_32 TRUE) - ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "arm64") + ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") SET(CPUTYPE "aarch64") + MESSAGE(STATUS "Set CPUTYPE to aarch64") SET(TD_LINUX TRUE) SET(TD_LINUX_64 FALSE) SET(TD_ARM_64 TRUE) -- GitLab