Skip to content

Commit e976a7f

Browse files
committed
added CMake host processor check to appropriately set WOLFSSL_AARCH64_BUILD on M1 macs
1 parent c23559a commit e976a7f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,8 +1577,11 @@ endif()
15771577

15781578
# TODO: - Fast huge math
15791579

1580+
# Set processor-specific build macros
15801581
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64|AMD64")
15811582
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_X86_64_BUILD")
1583+
elseif("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "aarch64|arm64")
1584+
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_AARCH64_BUILD")
15821585
endif()
15831586

15841587
# SP math all

0 commit comments

Comments
 (0)