Skip to content

Commit

Permalink
cmd/dist: support windows/arm
Browse files Browse the repository at this point in the history
Updates #26148

Change-Id: I4744ebcc77fda3acc1301a1d8857754c0ee797fa
Reviewed-on: https://go-review.googlesource.com/130056
Run-TryBot: Brad Fitzpatrick <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
jordanrh1 authored and bradfitz committed Aug 20, 2018
1 parent c589b9e commit 3000795
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/dist/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,7 @@ var cgoEnabled = map[string]bool{
"solaris/amd64": true,
"windows/386": true,
"windows/amd64": true,
"windows/arm": false,
}

func needCC() bool {
Expand Down
3 changes: 3 additions & 0 deletions src/cmd/dist/sys_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type systeminfo struct {
const (
PROCESSOR_ARCHITECTURE_AMD64 = 9
PROCESSOR_ARCHITECTURE_INTEL = 0
PROCESSOR_ARCHITECTURE_ARM = 5
)

var sysinfo systeminfo
Expand All @@ -43,6 +44,8 @@ func sysinit() {
gohostarch = "amd64"
case PROCESSOR_ARCHITECTURE_INTEL:
gohostarch = "386"
case PROCESSOR_ARCHITECTURE_ARM:
gohostarch = "arm"
default:
fatalf("unknown processor architecture")
}
Expand Down

0 comments on commit 3000795

Please sign in to comment.