Skip to content

Commit

Permalink
cmd/dist,internal: enable buildmode=c-archive for linux/loong64
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Meidan Li <[email protected]>
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: WANG Xuerui <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Run-TryBot: Ian Lance Taylor <[email protected]>
Run-TryBot: WANG Xuerui <[email protected]>
  • Loading branch information
abner-chenc authored and gopherbot committed Apr 27, 2023
1 parent 954ff15 commit 3a7806d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cmd/dist/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/internal/platform/supported.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a7806d

Please sign in to comment.