From 3aae49b8b48a458837abb2dc6bb09f5e5ad976c6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 5 Sep 2019 16:04:06 -0700 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/cmd/dist/main.go | 9 ++------- 1 file 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 == "" { -- 2.50.0