mirror of
https://github.com/golang/go
synced 2024-11-16 22:44:49 -07:00
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 <dmitshur@google.com> Reviewed-by: Meidan Li <limeidan@loongson.cn> Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: WANG Xuerui <git@xen0n.name> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Run-TryBot: WANG Xuerui <git@xen0n.name>
This commit is contained in:
parent
954ff15dbe
commit
3a7806d387
2
src/cmd/dist/test.go
vendored
2
src/cmd/dist/test.go
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user