From a2eb643cbf5b68b50dd2dd5b62e605ca90ababe4 Mon Sep 17 00:00:00 2001 From: limeidan Date: Mon, 9 Oct 2023 17:32:03 +0800 Subject: cmd/dist, internal/platform: enable internal linking feature and test on loong64 Change-Id: Ifea676e9eb44281465832fc4050f6286e50f4543 Reviewed-on: https://go-review.googlesource.com/c/go/+/533717 Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: David Chase Reviewed-by: abner chenc Reviewed-by: sophie zhao Reviewed-by: Qiqi Huang --- src/internal/platform/supported.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/internal') diff --git a/src/internal/platform/supported.go b/src/internal/platform/supported.go index 2e09a2d6d8..7d25fd7ee9 100644 --- a/src/internal/platform/supported.go +++ b/src/internal/platform/supported.go @@ -85,7 +85,7 @@ func FuzzInstrumented(goos, goarch string) bool { func MustLinkExternal(goos, goarch string, withCgo bool) bool { if withCgo { switch goarch { - case "loong64", "mips", "mipsle", "mips64", "mips64le": + case "mips", "mipsle", "mips64", "mips64le": // Internally linking cgo is incomplete on some architectures. // https://go.dev/issue/14449 return true @@ -225,7 +225,7 @@ func InternalLinkPIESupported(goos, goarch string) bool { switch goos + "/" + goarch { case "android/arm64", "darwin/amd64", "darwin/arm64", - "linux/amd64", "linux/arm64", "linux/ppc64le", + "linux/amd64", "linux/arm64", "linux/loong64", "linux/ppc64le", "windows/386", "windows/amd64", "windows/arm", "windows/arm64": return true } -- cgit v1.3