diff options
| author | limeidan <limeidan@loongson.cn> | 2023-10-09 17:32:03 +0800 |
|---|---|---|
| committer | abner chenc <chenguoqi@loongson.cn> | 2025-05-20 20:28:18 -0700 |
| commit | a2eb643cbf5b68b50dd2dd5b62e605ca90ababe4 (patch) | |
| tree | d191e4ad94292913e1c4fe102a7fb04cbbd5022e /src/internal | |
| parent | d37a1bdd48458e48de13cdc320c8ddf9b021e356 (diff) | |
| download | go-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.go | 4 |
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 } |
