mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-06 08:40:43 +00:00
Warn about incorrect -goarch values
This commit is contained in:
parent
fce73f6f17
commit
faf519ab1b
10
build.go
10
build.go
@ -55,6 +55,16 @@ func main() {
|
|||||||
flag.BoolVar(&noupgrade, "no-upgrade", false, "Disable upgrade functionality")
|
flag.BoolVar(&noupgrade, "no-upgrade", false, "Disable upgrade functionality")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
switch goarch {
|
||||||
|
case "386", "amd64", "armv5", "armv6", "armv7":
|
||||||
|
break
|
||||||
|
case "arm":
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
|
||||||
checkRequiredGoVersion()
|
checkRequiredGoVersion()
|
||||||
|
|
||||||
if check() != nil {
|
if check() != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user