From c08f492f78eb41f4ac9c6aae88570a1c08751d9b Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 18 Sep 2017 14:22:54 -0700 Subject: [PATCH] Fix arm64 packages contain 32-bit executable (#3246) (cherry picked from commit b8e134cd37fc8d05597e6f080c3269857909ab6a) --- scripts/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build.py b/scripts/build.py index 40b849ebc..9b70e961e 100755 --- a/scripts/build.py +++ b/scripts/build.py @@ -274,6 +274,8 @@ def get_system_arch(): arch = "amd64" elif arch == "386": arch = "i386" + elif "arm64" in arch: + arch = "arm64" elif 'arm' in arch: # Prevent uname from reporting full ARM arch (eg 'armv7l') arch = "arm" @@ -446,6 +448,8 @@ def build(version=None, # Handle variations in architecture output if arch == "i386" or arch == "i686": arch = "386" + elif "arm64" in arch: + arch = "arm64" elif "arm" in arch: arch = "arm" build_command += "GOOS={} GOARCH={} ".format(platform, arch)