Lines Matching full:arch

1 # detect-arch.cmake -- Detect compiler architecture and set ARCH and BASEARCH
8 list(GET CMAKE_OSX_ARCHITECTURES 0 ARCH)
11 set(ARCH "i686") variable
13 set(ARCH "x86_64") variable
15 set(ARCH "arm") variable
17 set(ARCH "aarch64") variable
20 set(ARCH ${CMAKE_C_COMPILER_TARGET}) variable
22 # Let preprocessor parse archdetect.c and raise an error containing the arch identifier
28 ${CMAKE_CURRENT_SOURCE_DIR}/cmake/detect-arch.c
33 # Find basearch tag, and extract the arch word into BASEARCH variable
34 string(REGEX REPLACE ".*archfound ([a-zA-Z0-9_]+).*" "\\1" ARCH "${RAWOUTPUT}")
35 if(NOT ARCH)
36 set(ARCH unknown) variable
40 # Make sure we have ARCH set
41 if(NOT ARCH OR ARCH STREQUAL "unknown")
42 set(ARCH ${CMAKE_SYSTEM_PROCESSOR}) variable
43 message(STATUS "Arch not recognized, falling back to cmake arch: '${ARCH}'")
45 message(STATUS "Arch detected: '${ARCH}'")
48 # Base arch detection
49 if("${ARCH}" MATCHES "(x86_64|AMD64|i[3-6]86)")
52 elseif("${ARCH}" MATCHES "(arm(v[0-9])?|aarch64)")
55 elseif("${ARCH}" MATCHES "ppc(64(le)?)?|powerpc(64(le)?)?")
58 elseif("${ARCH}" MATCHES "alpha")
61 elseif("${ARCH}" MATCHES "blackfin")
64 elseif("${ARCH}" MATCHES "ia64")
67 elseif("${ARCH}" MATCHES "mips")
70 elseif("${ARCH}" MATCHES "m68k")
73 elseif("${ARCH}" MATCHES "sh")
76 elseif("${ARCH}" MATCHES "sparc[89]?")
79 elseif("${ARCH}" MATCHES "s3[679]0x?")
82 elseif("${ARCH}" MATCHES "parisc")
85 elseif("${ARCH}" MATCHES "rs6000")
91 message(STATUS "Basearch '${ARCH}' not recognized, defaulting to 'x86'.")
93 message(STATUS "Basearch of '${ARCH}' has been detected as: '${BASEARCH}'")