From 7b47692ec0daa1802d265fa1dd408a45a3a5872c Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 13 Jun 2018 23:20:52 +0200 Subject: [PATCH] build: MacOS X is now macOS; don't presume to know all possible goarchs --- build.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/build.go b/build.go index 87d1d7914..89fdf5009 100644 --- a/build.go +++ b/build.go @@ -239,8 +239,6 @@ func main() { // might have installed during "build.go setup". os.Setenv("PATH", fmt.Sprintf("%s%cbin%c%s", os.Getenv("GOPATH"), os.PathSeparator, os.PathListSeparator, os.Getenv("PATH"))) - checkArchitecture() - // Invoking build.go with no parameters at all builds everything (incrementally), // which is what you want for maximum error checking during development. if flag.NArg() == 0 { @@ -262,15 +260,6 @@ func main() { } } -func checkArchitecture() { - switch goarch { - case "386", "amd64", "arm", "arm64", "ppc64", "ppc64le", "mips", "mipsle": - break - default: - log.Printf("Unknown goarch %q; proceed with caution!", goarch) - } -} - func runCommand(cmd string, target target) { switch cmd { case "setup": @@ -981,7 +970,7 @@ func buildHost() string { func buildArch() string { os := goos if os == "darwin" { - os = "macosx" + os = "macos" } return fmt.Sprintf("%s-%s", os, goarch) }