aboutsummaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorlimeidan <limeidan@loongson.cn>2023-10-09 17:32:03 +0800
committerabner chenc <chenguoqi@loongson.cn>2025-05-20 20:28:18 -0700
commita2eb643cbf5b68b50dd2dd5b62e605ca90ababe4 (patch)
treed191e4ad94292913e1c4fe102a7fb04cbbd5022e /src/internal
parentd37a1bdd48458e48de13cdc320c8ddf9b021e356 (diff)
downloadgo-a2eb643cbf5b68b50dd2dd5b62e605ca90ababe4.tar.xz
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 <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: abner chenc <chenguoqi@loongson.cn> Reviewed-by: sophie zhao <zhaoxiaolin@loongson.cn> Reviewed-by: Qiqi Huang <huangqiqi@loongson.cn>
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/platform/supported.go4
1 files changed, 2 insertions, 2 deletions
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
}