Skip to content

Commit

Permalink
Use the correct GOARM value in the armel package (influxdata#4608)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson authored and otherpirate committed Mar 15, 2019
1 parent 848321e commit 6e36e90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,14 @@ def build(version=None,
build_command += "CGO_ENABLED=0 "

# Handle variations in architecture output
goarch = arch
if arch == "i386" or arch == "i686":
arch = "386"
goarch = "386"
elif "arm64" in arch:
arch = "arm64"
goarch = "arm64"
elif "arm" in arch:
arch = "arm"
build_command += "GOOS={} GOARCH={} ".format(platform, arch)
goarch = "arm"
build_command += "GOOS={} GOARCH={} ".format(platform, goarch)

if "arm" in arch:
if arch == "armel":
Expand Down

0 comments on commit 6e36e90

Please sign in to comment.