summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-09-05 16:04:06 -0700
committerIan Lance Taylor <iant@golang.org>2019-09-06 04:54:12 +0000
commit3aae49b8b48a458837abb2dc6bb09f5e5ad976c6 (patch)
tree6cf8953b09e63294dd97d2733325f049c1882021 /src
parent1406ece4461cc042c9340efbe331e2d7f6db2f8e (diff)
downloadgo-git-3aae49b8b48a458837abb2dc6bb09f5e5ad976c6.tar.gz
cmd/dist: default to clang on OpenBSD
OpenBSD ships with GCC 4.2, the last version of GCC that used GPLv2. As that is quite old (current GCC version is GCC 9, GCC 4.2 was released in 2007), default to clang. Change-Id: Ib93e7b4f4f3ffb9e047e60ffca3696d26ab08aac Reviewed-on: https://go-review.googlesource.com/c/go/+/193621 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/dist/main.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/cmd/dist/main.go b/src/cmd/dist/main.go
index 07361d828f..3e54915122 100644
--- a/src/cmd/dist/main.go
+++ b/src/cmd/dist/main.go
@@ -66,13 +66,8 @@ func main() {
// Since FreeBSD 10 gcc is no longer part of the base system.
defaultclang = true
case "openbsd":
- // The gcc available on OpenBSD armv7 is old/inadequate (for example, lacks
- // __sync_fetch_and_*/__sync_*_and_fetch) and will likely be removed in the
- // not-to-distant future - use clang instead. OpenBSD arm64 does not ship
- // with gcc.
- if runtime.GOARCH == "arm" || runtime.GOARCH == "arm64" {
- defaultclang = true
- }
+ // OpenBSD ships with GCC 4.2, which is now quite old.
+ defaultclang = true
case "plan9":
gohostarch = os.Getenv("objtype")
if gohostarch == "" {