From 4ce0d91ae22401e3636f26698079cd897ad83c5f Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Mon, 15 May 2017 13:31:38 -0700 Subject: [PATCH] add support for building arm64 binaries --- scripts/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 367697ea9..807538c0a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -12,7 +12,7 @@ DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" cd $DIR # Determine the arch/os combos we're building for -XC_ARCH=${XC_ARCH:-"386 amd64 arm"} +XC_ARCH=${XC_ARCH:-"386 amd64 arm arm64"} XC_OS=${XC_OS:-linux darwin windows freebsd openbsd} # Delete the old dir @@ -27,6 +27,7 @@ set +e gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ + -osarch="!darwin/arm !darwin/arm64" \ -ldflags "${GOLDFLAGS}" \ -output "pkg/{{.OS}}_{{.Arch}}/packer" \ .