File tree 1 file changed +10
-0
lines changed
arduino-core/src/processing/app
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,16 @@ static public PreferencesMap getBoardPreferences() {
171
171
if (platform != null )
172
172
requiredTools .addAll (platform .getResolvedTools ());
173
173
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
+
174
184
String prefix = "runtime.tools." ;
175
185
for (ContributedTool tool : requiredTools ) {
176
186
File folder = tool .getDownloadableContribution (getPlatform ()).getInstalledFolder ();
You can’t perform that action at this time.
0 commit comments