]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist,internal: enable buildmode=c-archive for linux/loong64
authorGuoqi Chen <chenguoqi@loongson.cn>
Wed, 26 Apr 2023 03:47:16 +0000 (11:47 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 27 Apr 2023 18:35:10 +0000 (18:35 +0000)
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>

src/cmd/dist/test.go
src/internal/platform/supported.go

index cc96223aa67d57a72671df173618010aed9ba8e8..31eb69113ab2bd705b7fd09148ac0f3f4cf26867 100644 (file)
@@ -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
index 57a86b054d3deb9a639558c4c4a79da2022b8148..8eb0657d4c9817b2881aed1f29fbce6a84c77881 100644 (file)
@@ -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