forked from wolfSSL/wolfssl
added CMake host processor check to appropriately set WOLFSSL_AARCH64_BUILD on M1 macs
This commit is contained in:
@@ -1577,8 +1577,11 @@ endif()
|
|||||||
|
|
||||||
# TODO: - Fast huge math
|
# TODO: - Fast huge math
|
||||||
|
|
||||||
|
# Set processor-specific build macros
|
||||||
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64|AMD64")
|
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64|AMD64")
|
||||||
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_X86_64_BUILD")
|
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_X86_64_BUILD")
|
||||||
|
elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "aarch64|arm64")
|
||||||
|
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_AARCH64_BUILD")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# SP math all
|
# SP math all
|
||||||
|
Reference in New Issue
Block a user