Skip to content

Commit

Permalink
Fix darwin-arm64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Rakshith Gopala Krishna committed Jun 15, 2021
1 parent 02eacd1 commit 6997588
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions crypto/curve25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ package crypto
// #cgo CFLAGS: -Wall -std=c99
// #cgo darwin,amd64 CFLAGS: -I${SRCDIR}/libs/darwin/amd64/include
// #cgo darwin,amd64 LDFLAGS: ${SRCDIR}/libs/darwin/amd64/lib/libsodium.a
// #cgo darwin,arm64 CFLAGS: -I${SRCDIR}/libs/darwin/arm64/include
// #cgo darwin,arm64 LDFLAGS: ${SRCDIR}/libs/darwin/arm64/lib/libsodium.a
// #cgo linux,amd64 CFLAGS: -I${SRCDIR}/libs/linux/amd64/include
// #cgo linux,amd64 LDFLAGS: ${SRCDIR}/libs/linux/amd64/lib/libsodium.a
// #cgo linux,arm64 CFLAGS: -I${SRCDIR}/libs/linux/arm64/include
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/archtype.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ elif [[ "${ARCH}" = "armv6l" ]]; then
echo "arm"
elif [[ "${ARCH}" = "armv7l" ]]; then
echo "arm"
elif [[ "${ARCH}" = "aarch64" ]]; then
elif [[ "${ARCH}" = "aarch64" ]] || [[ "${ARCH}" = "arm64" ]]; then
echo "arm64"
else
# Anything else needs to be specifically added...
Expand Down

0 comments on commit 6997588

Please sign in to comment.