Skip to content

Commit

Permalink
Fix arm64 packages contain 32-bit executable (#3246)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored Sep 18, 2017
1 parent 19084f8 commit 126bd1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 126bd1f

Please sign in to comment.