+33
-26
lines changedFilter options
+33
-26
lines changed Original file line number Diff line number Diff line change
@@ -170,20 +170,21 @@ Each tool version may come in different build flavours for different OS. Each fl
170
170
array. The IDE will take care to install the right flavour for the user's OS by matching the `host` value with the
171
171
following table or fail if a needed flavour is missing.
172
172
173
-
| OS flavour | `host` regexp value | `host` suggested value |
174
-
| ------------ | ------------------------------------- | ---------------------------------- |
175
-
| Linux 32 | `i[3456]86-.*linux-gnu` | `i686-linux-gnu` |
176
-
| Linux 64 | `x86_64-.*linux-gnu` | `x86_64-linux-gnu` |
177
-
| Linux Arm | `arm.*-linux-gnueabihf` | `arm-linux-gnueabihf` |
178
-
| Linux Arm64 | `(aarch64\|arm64)-linux-gnu` | `aarch64-linux-gnu` |
179
-
| Windows 32 | `i[3456]86-.*(mingw32\|cygwin)` | `i686-mingw32` or `i686-cygwin` |
180
-
| Windows 64 | `(amd64\|x86_64)-.*(mingw32\|cygwin)` | `x86_64-migw32` or `x86_64-cygwin` |
181
-
| MacOSX 32 | `i[3456]86-apple-darwin.*` | `i686-apple-darwin` |
182
-
| MacOSX 64 | `x86_64-apple-darwin.*` | `x86_64-apple-darwin` |
183
-
| MacOSX Arm64 | `arm64-apple-darwin.*` | `arm64-apple-darwin` |
184
-
| FreeBSD 32 | `i?[3456]86-freebsd[0-9]*` | `i686-freebsd` |
185
-
| FreeBSD 64 | `amd64-freebsd[0-9]*` | `amd64-freebsd` |
186
-
| FreeBSD Arm | `arm.*-freebsd[0-9]*` | `arm-freebsd` |
173
+
| OS flavour | `host` regexp | suggested `host` value |
174
+
| --------------- | ------------------------------------- | ---------------------------------- |
175
+
| Linux 32 | `i[3456]86-.*linux-gnu` | `i686-linux-gnu` |
176
+
| Linux 64 | `x86_64-.*linux-gnu` | `x86_64-linux-gnu` |
177
+
| Linux Arm | `arm.*-linux-gnueabihf` | `arm-linux-gnueabihf` |
178
+
| Linux Arm64 | `(aarch64\|arm64)-linux-gnu` | `aarch64-linux-gnu` |
179
+
| Linux RISC-V 64 | `riscv64-linux-gnu` | `riscv64-linux-gnu` |
180
+
| Windows 32 | `i[3456]86-.*(mingw32\|cygwin)` | `i686-mingw32` or `i686-cygwin` |
181
+
| Windows 64 | `(amd64\|x86_64)-.*(mingw32\|cygwin)` | `x86_64-migw32` or `x86_64-cygwin` |
182
+
| MacOSX 32 | `i[3456]86-apple-darwin.*` | `i686-apple-darwin` |
183
+
| MacOSX 64 | `x86_64-apple-darwin.*` | `x86_64-apple-darwin` |
184
+
| MacOSX Arm64 | `arm64-apple-darwin.*` | `arm64-apple-darwin` |
185
+
| FreeBSD 32 | `i?[3456]86-freebsd[0-9]*` | `i686-freebsd` |
186
+
| FreeBSD 64 | `amd64-freebsd[0-9]*` | `amd64-freebsd` |
187
+
| FreeBSD Arm | `arm.*-freebsd[0-9]*` | `arm-freebsd` |
187
188
188
189
The `host` value is matched with the regexp, this means that a more specific value for the `host` field is allowed (for
189
190
example you may write `x86_64-apple-darwin14.1` for MacOSX instead of the suggested `x86_64-apple-darwin`), by the way,
Original file line number Diff line number Diff line change
@@ -127,18 +127,19 @@ func (tr *ToolRelease) RuntimeProperties() *properties.Map {
127
127
}
128
128
129
129
var (
130
-
regexpLinuxArm = regexp.MustCompile("arm.*-linux-gnueabihf")
131
-
regexpLinuxArm64 = regexp.MustCompile("(aarch64|arm64)-linux-gnu")
132
-
regexpLinux64 = regexp.MustCompile("x86_64-.*linux-gnu")
133
-
regexpLinux32 = regexp.MustCompile("i[3456]86-.*linux-gnu")
134
-
regexpWindows32 = regexp.MustCompile("i[3456]86-.*(mingw32|cygwin)")
135
-
regexpWindows64 = regexp.MustCompile("(amd64|x86_64)-.*(mingw32|cygwin)")
136
-
regexpMac64 = regexp.MustCompile("x86_64-apple-darwin.*")
137
-
regexpMac32 = regexp.MustCompile("i[3456]86-apple-darwin.*")
138
-
regexpMacArm64 = regexp.MustCompile("arm64-apple-darwin.*")
139
-
regexpFreeBSDArm = regexp.MustCompile("arm.*-freebsd[0-9]*")
140
-
regexpFreeBSD32 = regexp.MustCompile("i?[3456]86-freebsd[0-9]*")
141
-
regexpFreeBSD64 = regexp.MustCompile("amd64-freebsd[0-9]*")
130
+
regexpLinuxArm = regexp.MustCompile("arm.*-linux-gnueabihf")
131
+
regexpLinuxArm64 = regexp.MustCompile("(aarch64|arm64)-linux-gnu")
132
+
regexpLinuxRiscv64 = regexp.MustCompile("riscv64-linux-gnu")
133
+
regexpLinux64 = regexp.MustCompile("x86_64-.*linux-gnu")
134
+
regexpLinux32 = regexp.MustCompile("i[3456]86-.*linux-gnu")
135
+
regexpWindows32 = regexp.MustCompile("i[3456]86-.*(mingw32|cygwin)")
136
+
regexpWindows64 = regexp.MustCompile("(amd64|x86_64)-.*(mingw32|cygwin)")
137
+
regexpMac64 = regexp.MustCompile("x86_64-apple-darwin.*")
138
+
regexpMac32 = regexp.MustCompile("i[3456]86-apple-darwin.*")
139
+
regexpMacArm64 = regexp.MustCompile("arm64-apple-darwin.*")
140
+
regexpFreeBSDArm = regexp.MustCompile("arm.*-freebsd[0-9]*")
141
+
regexpFreeBSD32 = regexp.MustCompile("i?[3456]86-freebsd[0-9]*")
142
+
regexpFreeBSD64 = regexp.MustCompile("amd64-freebsd[0-9]*")
142
143
)
143
144
144
145
func (f *Flavor) isExactMatchWith(osName, osArch string) bool {
@@ -151,6 +152,8 @@ func (f *Flavor) isExactMatchWith(osName, osArch string) bool {
151
152
return regexpLinuxArm.MatchString(f.OS)
152
153
case "linux,arm64":
153
154
return regexpLinuxArm64.MatchString(f.OS)
155
+
case "linux,riscv64":
156
+
return regexpLinuxRiscv64.MatchString(f.OS)
154
157
case "linux,amd64":
155
158
return regexpLinux64.MatchString(f.OS)
156
159
case "linux,386":
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ func TestFlavorCompatibility(t *testing.T) {
34
34
linuxArm := &os{"linux", "arm"}
35
35
linuxArmbe := &os{"linux", "armbe"}
36
36
linuxArm64 := &os{"linux", "arm64"}
37
+
linuxRiscv64 := &os{"linux", "riscv64"}
37
38
darwin32 := &os{"darwin", "386"}
38
39
darwin64 := &os{"darwin", "amd64"}
39
40
darwinArm64 := &os{"darwin", "arm64"}
@@ -47,6 +48,7 @@ func TestFlavorCompatibility(t *testing.T) {
47
48
linuxArm,
48
49
linuxArmbe,
49
50
linuxArm64,
51
+
linuxRiscv64,
50
52
darwin32,
51
53
darwin64,
52
54
darwinArm64,
@@ -82,6 +84,7 @@ func TestFlavorCompatibility(t *testing.T) {
82
84
{&Flavor{OS: "x86_64-pc-linux-gnu"}, []*os{linux64}, []*os{linux64}},
83
85
{&Flavor{OS: "aarch64-linux-gnu"}, []*os{linuxArm64}, []*os{linuxArm64}},
84
86
{&Flavor{OS: "arm64-linux-gnu"}, []*os{linuxArm64}, []*os{linuxArm64}},
87
+
{&Flavor{OS: "riscv64-linux-gnu"}, []*os{linuxRiscv64}, []*os{linuxRiscv64}},
85
88
}
86
89
87
90
checkCompatible := func(test *test, os *os) {
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4