From 3a7806d387e8dc62a327ce9d2c7a3ea913f1efde Mon Sep 17 00:00:00 2001 From: Guoqi Chen Date: Wed, 26 Apr 2023 11:47:16 +0800 Subject: [PATCH] cmd/dist,internal: enable buildmode=c-archive for linux/loong64 Now the shared flag is supported on the linux/loong64 platform and misc/cgo/testcarchive has been passed, buildmode=c-archive can be used. Change-Id: Ice450dc11fcb91942fdf2ddd34bb163853267e01 Reviewed-on: https://go-review.googlesource.com/c/go/+/489576 Reviewed-by: Dmitri Shuralyov Reviewed-by: Meidan Li Auto-Submit: Ian Lance Taylor Reviewed-by: WANG Xuerui Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Run-TryBot: Ian Lance Taylor Run-TryBot: WANG Xuerui --- src/cmd/dist/test.go | 2 +- src/internal/platform/supported.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index cc96223aa67d5..31eb69113ab2b 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -1694,7 +1694,7 @@ func buildModeSupported(compiler, buildmode, goos, goarch string) bool { return true case "linux": switch goarch { - case "386", "amd64", "arm", "armbe", "arm64", "arm64be", "ppc64le", "riscv64", "s390x": + case "386", "amd64", "arm", "armbe", "arm64", "arm64be", "loong64", "ppc64le", "riscv64", "s390x": // linux/ppc64 not supported because it does // not support external linking mode yet. return true diff --git a/src/internal/platform/supported.go b/src/internal/platform/supported.go index 57a86b054d3de..8eb0657d4c981 100644 --- a/src/internal/platform/supported.go +++ b/src/internal/platform/supported.go @@ -140,7 +140,7 @@ func BuildModeSupported(compiler, buildmode, goos, goarch string) bool { return true case "linux": switch goarch { - case "386", "amd64", "arm", "armbe", "arm64", "arm64be", "ppc64le", "riscv64", "s390x": + case "386", "amd64", "arm", "armbe", "arm64", "arm64be", "loong64", "ppc64le", "riscv64", "s390x": // linux/ppc64 not supported because it does // not support external linking mode yet. return true