Skip to content

Commit 7233932

Browse files
committed
Require tools from referenced core platform if used
1 parent 4f1b584 commit 7233932

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

arduino-core/src/processing/app/BaseNoGui.java

+10
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@ static public PreferencesMap getBoardPreferences() {
171171
if (platform != null)
172172
requiredTools.addAll(platform.getResolvedTools());
173173

174+
// Add all tools dependencies from the (possibily) referenced core
175+
String core = prefs.get("build.core");
176+
if (core.contains(":")) {
177+
String split[] = core.split(":");
178+
TargetPlatform referenced = BaseNoGui.getCurrentTargetPlatformFromPackage(split[0]);
179+
ContributedPlatform referencedPlatform = indexer.getContributedPlaform(referenced);
180+
if (referencedPlatform != null)
181+
requiredTools.addAll(referencedPlatform.getResolvedTools());
182+
}
183+
174184
String prefix = "runtime.tools.";
175185
for (ContributedTool tool : requiredTools) {
176186
File folder = tool.getDownloadableContribution(getPlatform()).getInstalledFolder();

0 commit comments

Comments
 (0)