build: explicitly set ARM version to fix build #4553

This commit is contained in:
Nick Craig-Wood 2020-09-04 13:41:48 +01:00
parent e35623c72e
commit f71f6c57d7

View File

@ -74,6 +74,7 @@ var archFlags = map[string][]string{
"386": {"GO386=387"},
"mips": {"GOMIPS=softfloat"},
"mipsle": {"GOMIPS=softfloat"},
"arm": {"GOARM=6"},
"arm-v7": {"GOARM=7"},
}
@ -280,7 +281,7 @@ func stripVersion(goarch string) string {
// build the binary in dir returning success or failure
func compileArch(version, goos, goarch, dir string) bool {
log.Printf("Compiling %s/%s", goos, goarch)
log.Printf("Compiling %s/%s into %s", goos, goarch, dir)
output := filepath.Join(dir, "rclone")
if goos == "windows" {
output += ".exe"