mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Require tools from referenced core platform if used
This commit is contained in:
parent
4f1b584e71
commit
723393227c
@ -171,6 +171,16 @@ public class BaseNoGui {
|
||||
if (platform != null)
|
||||
requiredTools.addAll(platform.getResolvedTools());
|
||||
|
||||
// Add all tools dependencies from the (possibily) referenced core
|
||||
String core = prefs.get("build.core");
|
||||
if (core.contains(":")) {
|
||||
String split[] = core.split(":");
|
||||
TargetPlatform referenced = BaseNoGui.getCurrentTargetPlatformFromPackage(split[0]);
|
||||
ContributedPlatform referencedPlatform = indexer.getContributedPlaform(referenced);
|
||||
if (referencedPlatform != null)
|
||||
requiredTools.addAll(referencedPlatform.getResolvedTools());
|
||||
}
|
||||
|
||||
String prefix = "runtime.tools.";
|
||||
for (ContributedTool tool : requiredTools) {
|
||||
File folder = tool.getDownloadableContribution(getPlatform()).getInstalledFolder();
|
||||
|
Loading…
x
Reference in New Issue
Block a user