dist-macos-arm64: use -mcpu=apple-a13 (#3202)

This turns on the "crypto" hw extension which is picked up and used by
BLST.
This commit is contained in:
Ștefan Talpalaru 2021-12-15 23:08:42 +01:00 committed by GitHub
parent 1306aca1ff
commit de19418ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ elif [[ "${PLATFORM}" == "macOS_arm64" ]]; then
CC="${CC}" \
LIBTOOL="arm64-apple-darwin${DARWIN_VER}-libtool" \
OS="darwin" \
NIMFLAGS="${NIMFLAGS_COMMON} --os:macosx --cpu:arm64 --clang.exe=${CC}" \
NIMFLAGS="${NIMFLAGS_COMMON} --os:macosx --cpu:arm64 --passC:'-mcpu=apple-a13' --clang.exe=${CC}" \
nat-libs
make \
-j$(nproc) \
@ -148,7 +148,7 @@ elif [[ "${PLATFORM}" == "macOS_arm64" ]]; then
DSYMUTIL="arm64-apple-darwin${DARWIN_VER}-dsymutil" \
FORCE_DSYMUTIL=1 \
USE_VENDORED_LIBUNWIND=1 \
NIMFLAGS="${NIMFLAGS_COMMON} --os:macosx --cpu:arm64 --clang.exe=${CC} --clang.linkerexe=${CC}" \
NIMFLAGS="${NIMFLAGS_COMMON} --os:macosx --cpu:arm64 --passC:'-mcpu=apple-a13' --passL:'-mcpu=apple-a13' --clang.exe=${CC} --clang.linkerexe=${CC}" \
${BINARIES}
else
# Linux AMD64