From 11259dee07daf733b6fe111f0a9f1a649801a418 Mon Sep 17 00:00:00 2001 From: James Nugent Date: Mon, 22 Aug 2016 14:34:53 +0200 Subject: [PATCH] build: Exclude darwin/arm from OS/Arch targets Fixes #8365 --- scripts/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index e1d89587e..ed2388cae 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -17,6 +17,7 @@ GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES" || true) # Determine the arch/os combos we're building for XC_ARCH=${XC_ARCH:-"386 amd64 arm"} XC_OS=${XC_OS:-linux darwin windows freebsd openbsd solaris} +XC_EXCLUDE_OSARCH="!darwin/arm" # Delete the old dir echo "==> Removing old directory..." @@ -49,6 +50,7 @@ echo "==> Building..." gox \ -os="${XC_OS}" \ -arch="${XC_ARCH}" \ + -osarch="${XC_EXCLUDE_OSARCH}" \ -ldflags "${LD_FLAGS}" \ -output "pkg/{{.OS}}_{{.Arch}}/terraform" \ .