Commit 3000795c authored by Jordan Rhee's avatar Jordan Rhee Committed by Brad Fitzpatrick

cmd/dist: support windows/arm

Updates #26148

Change-Id: I4744ebcc77fda3acc1301a1d8857754c0ee797fa
Reviewed-on: https://go-review.googlesource.com/130056
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent c589b9ec
...@@ -1422,6 +1422,7 @@ var cgoEnabled = map[string]bool{ ...@@ -1422,6 +1422,7 @@ var cgoEnabled = map[string]bool{
"solaris/amd64": true, "solaris/amd64": true,
"windows/386": true, "windows/386": true,
"windows/amd64": true, "windows/amd64": true,
"windows/arm": false,
} }
func needCC() bool { func needCC() bool {
......
...@@ -32,6 +32,7 @@ type systeminfo struct { ...@@ -32,6 +32,7 @@ type systeminfo struct {
const ( const (
PROCESSOR_ARCHITECTURE_AMD64 = 9 PROCESSOR_ARCHITECTURE_AMD64 = 9
PROCESSOR_ARCHITECTURE_INTEL = 0 PROCESSOR_ARCHITECTURE_INTEL = 0
PROCESSOR_ARCHITECTURE_ARM = 5
) )
var sysinfo systeminfo var sysinfo systeminfo
...@@ -43,6 +44,8 @@ func sysinit() { ...@@ -43,6 +44,8 @@ func sysinit() {
gohostarch = "amd64" gohostarch = "amd64"
case PROCESSOR_ARCHITECTURE_INTEL: case PROCESSOR_ARCHITECTURE_INTEL:
gohostarch = "386" gohostarch = "386"
case PROCESSOR_ARCHITECTURE_ARM:
gohostarch = "arm"
default: default:
fatalf("unknown processor architecture") fatalf("unknown processor architecture")
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment