1
0
mirror of https://github.com/golang/go synced 2024-11-17 13:54:46 -07:00

cmd/go/internal: configure go tool workflow for loong64

Contributors to the loong64 port are:
  Weining Lu <luweining@loongson.cn>
  Lei Wang <wanglei@loongson.cn>
  Lingqin Gong <gonglingqin@loongson.cn>
  Xiaolin Zhao <zhaoxiaolin@loongson.cn>
  Meidan Li <limeidan@loongson.cn>
  Xiaojuan Zhai <zhaixiaojuan@loongson.cn>
  Qiyuan Pu <puqiyuan@loongson.cn>
  Guoqi Chen <chenguoqi@loongson.cn>

This port has been updated to Go 1.15.6:
  https://github.com/loongson/go

Updates #46229

Change-Id: I6b537a7d842b0683586917fe7ea7cd4d70d888de
Reviewed-on: https://go-review.googlesource.com/c/go/+/342308
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Xiaodong Liu 2021-08-15 15:57:43 +08:00 committed by Gopher Robot
parent edab07d09f
commit d09ca2cb8e
2 changed files with 3 additions and 0 deletions

View File

@ -328,6 +328,7 @@ var KnownArch = map[string]bool{
"mips64le": true,
"mips64p32": true,
"mips64p32le": true,
"loong64": true,
"ppc": true,
"riscv": true,
"riscv64": true,

View File

@ -2654,6 +2654,8 @@ func (b *Builder) gccArchArgs() []string {
} else if cfg.GOMIPS == "softfloat" {
return append(args, "-msoft-float")
}
case "loong64":
return []string{"-mabi=lp64d"}
case "ppc64":
if cfg.Goos == "aix" {
return []string{"-maix64"}