We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 31aa418 + e6529f4 commit f674599Copy full SHA for f674599
platforms/cpuinfo.go
@@ -74,6 +74,22 @@ func getCPUInfo(pattern string) (info string, err error) {
74
}
75
76
func getCPUVariant() string {
77
+ if runtime.GOOS == "windows" {
78
+ // Windows only supports v7 for ARM32 and v8 for ARM64 and so we can use
79
+ // runtime.GOARCH to determine the variants
80
+ var variant string
81
+ switch runtime.GOARCH {
82
+ case "arm64":
83
+ variant = "v8"
84
+ case "arm":
85
+ variant = "v7"
86
+ default:
87
+ variant = "unknown"
88
+ }
89
+
90
+ return variant
91
92
93
variant, err := getCPUInfo("Cpu architecture")
94
if err != nil {
95
log.L.WithError(err).Error("failure getting variant")
0 commit comments