diff options
author | gaborkertesz-linaro <91903944+gaborkertesz-linaro@users.noreply.github.com> | 2022-07-05 18:52:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 18:52:35 +0300 |
commit | 1baac2bb033666698e0e30074664aa32fa28ce80 (patch) | |
tree | 12820a86a340a5d7fc8077b85176bca408c2bdbf /CMakeLists.txt | |
parent | ab5c79fa45e459dd9a98e53c8878e9e20fb7be7a (diff) |
Enable win-arm64 (#82)
This patch implements the required APIs for the new
win-arm64 platform by reading topology information via
Windows API.
Build config: cmake . -A ARM64
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7c28761..1f8fc6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ IF(NOT CMAKE_SYSTEM_PROCESSOR) "cpuinfo will compile, but cpuinfo_initialize() will always fail.") SET(CPUINFO_SUPPORTED_PLATFORM FALSE) ENDIF() -ELSEIF(NOT CPUINFO_TARGET_PROCESSOR MATCHES "^(i[3-6]86|AMD64|x86(_64)?|armv[5-8].*|aarch64|arm64)$") +ELSEIF(NOT CPUINFO_TARGET_PROCESSOR MATCHES "^(i[3-6]86|AMD64|x86(_64)?|armv[5-8].*|aarch64|arm64|ARM64)$") MESSAGE(WARNING "Target processor architecture \"${CPUINFO_TARGET_PROCESSOR}\" is not supported in cpuinfo. " "cpuinfo will compile, but cpuinfo_initialize() will always fail.") @@ -171,6 +171,9 @@ IF(CPUINFO_SUPPORTED_PLATFORM) LIST(APPEND CPUINFO_SRCS src/arm/android/properties.c) ENDIF() + ELSEIF(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND CPUINFO_TARGET_PROCESSOR STREQUAL "ARM64") + LIST(APPEND CPUINFO_SRCS src/arm/windows/init-by-logical-sys-info.c) + LIST(APPEND CPUINFO_SRCS src/arm/windows/init.c) ENDIF() IF(CMAKE_SYSTEM_NAME STREQUAL "Emscripten") |