Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 762970 | Differences between
and this patch

Collapse All | Expand All

(-)C:/Users/mlawrence/Downloads/gox-master/platform.go (-80 / +5 lines)
Lines 28-72 Link Here
28
/// Like `uname -s`
29
// Matches https://github.com/golang/go/blob/master/src/go/build/syslist.go
30
func (p *Platform) OSUname() string {
31
	return map[string]string{
32
		//"android":
33
		"darwin":    "Darwin",
34
		"dragonfly": "DragonFly",
35
		"freebsd":   "FreeBSD",
36
		"linux":     "Linux",
37
		//"nacl":
38
		"netbsd":    "NetBSD",
39
		"openbsd":   "OpenBSD",
40
		"plan9":     "Plan9",
41
		"solaris":   "SunOS",
42
		"windows":   "Windows",
43
		//"zos":
44
	}[p.OS]
45
}
46
47
/// Like `uname -m`
48
// Matches https://github.com/golang/go/blob/master/src/go/build/syslist.go
49
func (p *Platform) ArchUname() string {
50
	return map[string]string{
51
		"386":     "i386",
52
		"amd64":   "x86_64",
53
		//"amd64p32":
54
		"arm":     "arm",
55
		//"armbe":
56
		"arm64":   "aarch64",
57
		//"arm64be":
58
		"ppc64":   "ppc64",
59
		"ppc64le": "ppc64le",
60
		//"mips":
61
		//"mipsle":
62
		//"mips64":
63
		//"mips64p32":
64
		//"mips64p32le":
65
		//"ppc":
66
		//"s390":
67
		//"s390x":
68
		//"sparc":
69
		//"sparc64":
70
	}[p.Arch]
71
}
72
Lines 137-140 Link Here
137
		{"linux", "arm64", true},
138
		//{"windows", "arm", true},  //not yet 
139
		//{"windows", "arm64", true}, //wont yet cross compile 
140
Lines 143-154 Link Here
143
	Platforms_1_9 = append(Platforms_1_8, []Platform{
94
	// no new platforms in 1.9
144
		{"linux", "riscv64", true},
95
	Platforms_1_9 = Platforms_1_8
145
		{"freebsd", "riscv64", true},
96
146
		{"freebsd", "arm64", true},
147
		{"freebsd", "arm", true},
148
		{"openbsd", "arm64", true},
149
		{"openbsd", "arm", true},
150
		{"openbsd", "riscv64", true},
151
		{"windows", "arm", true},
152
		{"windows", "arm64", true},
153
		{"js", "wasm", true},
154
	}...)
155
--
Lines 158-170 Link Here
158
	Platforms_1_11 = append(Platforms_1_10, []Platform{
100
	PlatformsLatest = Platforms_1_10
159
		{"js", "wasm", true},
160
		// Not sure arm64 was ported in 1.11 maybe before!
161
		{"linux", "arm64", true},
162
	}...)
163
164
	Platforms_1_12 = append(Platforms_1_11, []Platform{
165
		{"linux", "ppc64", true},
166
		{"windows", "arm", true},
167
		{"aix", "ppc64", true},
168
	}...)
169
170
	PlatformsLatest = Platforms_1_12
171
--
Lines 205-206 Link Here
205
		{">=1.11, < 1.12", Platforms_1_11},
206
		{">=1.12, < 1.13", Platforms_1_12},
Line 220 Link Here
220
	return Platforms_1_12
148
	return Platforms_1_9
221
--

Return to bug 762970