diff options
Diffstat (limited to 'src/cmd/dist/util.go')
-rw-r--r-- | src/cmd/dist/util.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/dist/util.go b/src/cmd/dist/util.go index e2f22dfe44..511978f2f5 100644 --- a/src/cmd/dist/util.go +++ b/src/cmd/dist/util.go @@ -393,6 +393,14 @@ func errprintf(format string, args ...interface{}) { func main() { os.Setenv("TERM", "dumb") // disable escape codes in clang errors + // provide -check-armv6k first, before checking for $GOROOT so that + // it is possible to run this check without having $GOROOT available. + if len(os.Args) > 1 && os.Args[1] == "-check-armv6k" { + useARMv6K() // might fail with SIGILL + println("ARMv6K supported.") + os.Exit(0) + } + slash = string(filepath.Separator) gohostos = runtime.GOOS |