added CMake host processor check to appropriately set WOLFSSL_AARCH64_BUILD on M1 macs

This commit is contained in:
Brett 2023-10-17 12:51:36 -06:00
parent c23559a91c
commit e976a7faeb

View File

@ -1577,8 +1577,11 @@ endif()
# TODO: - Fast huge math
# Set processor-specific build macros
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64|AMD64")
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_X86_64_BUILD")
elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "aarch64|arm64")
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_AARCH64_BUILD")
endif()
# SP math all