Skip to content

Commit ba42280

Browse files
author
Kyle Evans
committed
Simply arch matching
1 parent 481fd94 commit ba42280

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,10 @@ public boolean isCompatible(Platform platform) {
8080
}
8181

8282
if (osName.contains("FreeBSD")) {
83-
if (osArch.contains("amd64")) {
84-
return host.matches("x86_64-freebsd[0-9]*");
85-
} else if (osArch.contains("arm")) {
83+
if (osArch.contains("arm")) {
8684
return host.matches("arm.*-freebsd[0-9]*");
8785
} else {
88-
return host.matches("i386-freebsd[0-9]*");
86+
return host.matches(osArch + "-freebsd[0-9]*");
8987
}
9088
}
9189

0 commit comments

Comments
 (0)