mirror of
https://github.com/golang/go
synced 2024-11-23 21:00:06 -07:00
cmd/dist: support windows/arm
Updates #26148 Change-Id: I407481f9c0f8e3565dcfcbbc53e5aa7427d74680 Reviewed-on: https://go-review.googlesource.com/125646 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
6570ea3c60
commit
def3280eb4
1
src/cmd/dist/build.go
vendored
1
src/cmd/dist/build.go
vendored
@ -1422,6 +1422,7 @@ var cgoEnabled = map[string]bool{
|
||||
"solaris/amd64": true,
|
||||
"windows/386": true,
|
||||
"windows/amd64": true,
|
||||
"windows/arm": false,
|
||||
}
|
||||
|
||||
func needCC() bool {
|
||||
|
3
src/cmd/dist/sys_windows.go
vendored
3
src/cmd/dist/sys_windows.go
vendored
@ -32,6 +32,7 @@ type systeminfo struct {
|
||||
const (
|
||||
PROCESSOR_ARCHITECTURE_AMD64 = 9
|
||||
PROCESSOR_ARCHITECTURE_INTEL = 0
|
||||
PROCESSOR_ARCHITECTURE_ARM = 5
|
||||
)
|
||||
|
||||
var sysinfo systeminfo
|
||||
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user