提交 63713553 编写于 作者: sangshuduo's avatar sangshuduo

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

上级 959220bd
...@@ -102,10 +102,11 @@ ELSEIF (${CPUTYPE} MATCHES "x86") ...@@ -102,10 +102,11 @@ ELSEIF (${CPUTYPE} MATCHES "x86")
ELSE () ELSE ()
MESSAGE(STATUS "input cpuType unknown " ${CPUTYPE}) 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)") IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)")
MESSAGE(STATUS "The current platform is x86") MESSAGE(STATUS "The current platform is x86")
ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "armv7l") ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES "armv7l")
MESSAGE(STATUS "Set CPUTYPE to aarch32")
SET(CPUTYPE "aarch32") SET(CPUTYPE "aarch32")
ENDIF () ENDIF ()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册