]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: default to clang, not gcc, on freebsd
authorRuss Cox <rsc@golang.org>
Wed, 4 Nov 2015 17:41:04 +0000 (12:41 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 14 Nov 2015 03:35:41 +0000 (03:35 +0000)
Fixes #11380.

Change-Id: I0a284ad2a46826ce82486479ea4e79f0f470292f
Reviewed-on: https://go-review.googlesource.com/16635
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.6.txt
src/cmd/dist/util.go

index f01138f5fe76e614df9644097ab0667a0eb6ccd3..816c3ae962cf8f1449a73d8bc860b0b962b377f1 100644 (file)
@@ -1,5 +1,6 @@
 Tools:
 
+cmd/dist: use clang on FreeBSD (https://golang.org/cl/16635)
 cmd/go: vendoring enabled by default (https://golang.org/cl/13967/)
 cmd/go: flags for tests must precede package name if present; also makes it easier to pass flags to test binaries (https://golang.org/cl/14826)
 cmd/go: add -msan option (https://golang.org/cl/16169)
index d1e5787d6629c942cd70cd6fe7b068eae016edc6..c29e7812263fb1efa6e12f1db1343f8ed21acd62 100644 (file)
@@ -404,6 +404,9 @@ func main() {
                if strings.Contains(run("", CheckExit, "sysctl", "machdep.cpu.extfeatures"), "EM64T") {
                        gohostarch = "amd64"
                }
+       case "freebsd":
+               // Since FreeBSD 10 gcc is no longer part of the base system.
+               defaultclang = true
        case "solaris":
                // Even on 64-bit platform, solaris uname -m prints i86pc.
                out := run("", CheckExit, "isainfo", "-n")