Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-130478: Fixed HACL compilation failure on macOS Silicon#134188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
be5d371
2f7b2db
494672b
c11f348
b05d183
e89919d
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -7920,6 +7920,13 @@ AC_SUBST([LIBHACL_CFLAGS]) | ||
LIBHACL_LDFLAGS= # for now, no specific linker flags are needed | ||
AC_SUBST([LIBHACL_LDFLAGS]) | ||
# Determine if the specific HACL* universal2 implementation should be used | ||
use_hacl_universal2_impl=no | ||
if test "$UNIVERSAL_ARCHS" = "universal2" -o \ | ||
\( "$build_cpu" = "aarch64" -a "$build_vendor" = "apple" \); then | ||
use_hacl_universal2_impl=yes | ||
fi | ||
naizhao marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
# The SIMD files use aligned_alloc, which is not available on older versions of | ||
# Android. | ||
# The *mmintrin.h headers are x86-family-specific, so can't be used on WASI. | ||
@@ -7936,7 +7943,7 @@ then | ||
# available on x86_64. However, performance of the HACL SIMD128 implementation | ||
# isn't great, so it's disabled on ARM64. | ||
AC_MSG_CHECKING([for HACL* SIMD128 implementation]) | ||
if test "$use_hacl_universal2_impl" = "yes"; then | ||
[LIBHACL_BLAKE2_SIMD128_OBJS="Modules/_hacl/Hacl_Hash_Blake2s_Simd128_universal2.o"] | ||
AC_MSG_RESULT([universal2]) | ||
else | ||
@@ -7968,7 +7975,7 @@ then | ||
# implementation requires symbols that aren't available on ARM64. Use a | ||
# wrapped implementation if we're building for universal2. | ||
AC_MSG_CHECKING([for HACL* SIMD256 implementation]) | ||
if test "$use_hacl_universal2_impl" = "yes"; then | ||
[LIBHACL_BLAKE2_SIMD256_OBJS="Modules/_hacl/Hacl_Hash_Blake2b_Simd256_universal2.o"] | ||
AC_MSG_RESULT([universal2]) | ||
else | ||
Uh oh!
There was an error while loading.Please reload this page.