Skip to content

Commit 93de270

Browse files
committed
Fixed: HACL compilation failure on macOS Silicon
1 parent 0a160bf commit 93de270

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

configure

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7936,7 +7936,7 @@ then
79367936
# available on x86_64. However, performance of the HACL SIMD128 implementation
79377937
# isn't great, so it's disabled on ARM64.
79387938
AC_MSG_CHECKING([for HACL* SIMD128 implementation])
7939-
if test "$UNIVERSAL_ARCHS" == "universal2"; then
7939+
if [[ "$build_cpu" == "aarch64" && "$build_vendor" == "apple" ]]; then
79407940
[LIBHACL_BLAKE2_SIMD128_OBJS="Modules/_hacl/Hacl_Hash_Blake2s_Simd128_universal2.o"]
79417941
AC_MSG_RESULT([universal2])
79427942
else
@@ -7968,7 +7968,7 @@ then
79687968
# implementation requires symbols that aren't available on ARM64. Use a
79697969
# wrapped implementation if we're building for universal2.
79707970
AC_MSG_CHECKING([for HACL* SIMD256 implementation])
7971-
if test "$UNIVERSAL_ARCHS" == "universal2"; then
7971+
if [[ "$build_cpu" == "aarch64" && "$build_vendor" == "apple" ]]; then
79727972
[LIBHACL_BLAKE2_SIMD256_OBJS="Modules/_hacl/Hacl_Hash_Blake2b_Simd256_universal2.o"]
79737973
AC_MSG_RESULT([universal2])
79747974
else

0 commit comments

Comments
 (0)