File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
internal/arduino/cores/packagemanager Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -372,12 +372,17 @@ func (pme *Explorer) ResolveFQBN(fqbn *cores.FQBN) (
372372
373373 // Add runtime build properties
374374 buildProperties .Merge (boardPlatformRelease .RuntimeProperties ())
375+ buildProperties .SetPath ("build.board.platform.path" , boardPlatformRelease .InstallDir )
376+ buildProperties .SetPath ("build.core.platform.path" , corePlatformRelease .InstallDir )
375377 buildProperties .SetPath ("build.core.path" , corePlatformRelease .InstallDir .Join ("cores" , core ))
376378 buildProperties .SetPath ("build.system.path" , corePlatformRelease .InstallDir .Join ("system" ))
377379 buildProperties .Set ("build.variant.path" , "" )
378380 if variant != "" {
379381 buildProperties .SetPath ("build.variant.path" , variantPlatformRelease .InstallDir .Join ("variants" , variant ))
380382 }
383+ if buildProperties .GetBoolean ("build.use_core_platform_for_runtime_platform_path" ) {
384+ buildProperties .Set ("runtime.platform.path" , buildProperties .Get ("build.core.platform.path" ))
385+ }
381386
382387 for _ , tool := range pme .GetAllInstalledToolsReleases () {
383388 buildProperties .Merge (tool .RuntimeProperties ())
You can’t perform that action at this time.
0 commit comments