Use the correct GOARM value in the armel package (#4608)
This commit is contained in:
parent
59a64651f1
commit
8b2d64585d
|
@ -448,13 +448,14 @@ def build(version=None,
|
||||||
build_command += "CGO_ENABLED=0 "
|
build_command += "CGO_ENABLED=0 "
|
||||||
|
|
||||||
# Handle variations in architecture output
|
# Handle variations in architecture output
|
||||||
|
goarch = arch
|
||||||
if arch == "i386" or arch == "i686":
|
if arch == "i386" or arch == "i686":
|
||||||
arch = "386"
|
goarch = "386"
|
||||||
elif "arm64" in arch:
|
elif "arm64" in arch:
|
||||||
arch = "arm64"
|
goarch = "arm64"
|
||||||
elif "arm" in arch:
|
elif "arm" in arch:
|
||||||
arch = "arm"
|
goarch = "arm"
|
||||||
build_command += "GOOS={} GOARCH={} ".format(platform, arch)
|
build_command += "GOOS={} GOARCH={} ".format(platform, goarch)
|
||||||
|
|
||||||
if "arm" in arch:
|
if "arm" in arch:
|
||||||
if arch == "armel":
|
if arch == "armel":
|
||||||
|
|
Loading…
Reference in New Issue