mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
Merge pull request #1048 from asdil12/goarm
Directly accept GOARM env var for ARM version
This commit is contained in:
commit
8bd52946b4
6
build.go
6
build.go
@ -75,8 +75,14 @@ func main() {
|
||||
case "386", "amd64", "armv5", "armv6", "armv7":
|
||||
break
|
||||
case "arm":
|
||||
switch os.Getenv("GOARM") {
|
||||
case "5", "6", "7":
|
||||
goarch += "v" + os.Getenv("GOARM")
|
||||
break
|
||||
default:
|
||||
log.Println("Invalid goarch \"arm\". Use one of \"armv5\", \"armv6\", \"armv7\".")
|
||||
log.Fatalln("Note that producing a correct \"armv5\" binary requires a rebuilt stdlib.")
|
||||
}
|
||||
default:
|
||||
log.Printf("Unknown goarch %q; proceed with caution!", goarch)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user