Skip to content

Commit 44c0c73

Browse files
authored
Merge pull request #5444 from kevans91/freebsd-platform-tag
Add FreeBSD Platform Tag -- supports x86_64-freebsd, arm*-freebsd, an…
2 parents 934cac1 + ba42280 commit 44c0c73

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ public boolean isCompatible(Platform platform) {
7979
}
8080
}
8181

82+
if (osName.contains("FreeBSD")) {
83+
if (osArch.contains("arm")) {
84+
return host.matches("arm.*-freebsd[0-9]*");
85+
} else {
86+
return host.matches(osArch + "-freebsd[0-9]*");
87+
}
88+
}
89+
8290
return false;
8391
}
8492
}

0 commit comments

Comments
 (0)