diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 117fff417f..92b64c114a 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -40,6 +40,9 @@ else() elseif (OQS_USE_ARM_SHA2_INSTRUCTIONS) # Assume we are compiling native set(SHA2_IMPL ${SHA2_IMPL} sha2/sha2_ni.c) + if ((CMAKE_SYSTEM_NAME MATCHES "Darwin") AND (${CMAKE_C_COMPILER_ID} STREQUAL "GNU")) + set_source_files_properties(sha2/sha2_ni.c PROPERTIES COMPILE_FLAGS -march=armv8-a+crypto) + endif() endif() endif() diff --git a/src/common/sha2/sha2_local.h b/src/common/sha2/sha2_local.h index 9f87f527e3..3584d6ae85 100644 --- a/src/common/sha2/sha2_local.h +++ b/src/common/sha2/sha2_local.h @@ -1,5 +1,5 @@ /** - * \file sha2.h + * \file sha2_local.h * \brief Internal SHA2 functions that enable easy switching between native instructions * and c implementations *