File tree 1 file changed +5
-0
lines changed
internal/arduino/cores/packagemanager
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) (
372
372
373
373
// Add runtime build properties
374
374
buildProperties .Merge (boardPlatformRelease .RuntimeProperties ())
375
+ buildProperties .SetPath ("build.board.platform.path" , boardPlatformRelease .InstallDir )
376
+ buildProperties .SetPath ("build.core.platform.path" , corePlatformRelease .InstallDir )
375
377
buildProperties .SetPath ("build.core.path" , corePlatformRelease .InstallDir .Join ("cores" , core ))
376
378
buildProperties .SetPath ("build.system.path" , corePlatformRelease .InstallDir .Join ("system" ))
377
379
buildProperties .Set ("build.variant.path" , "" )
378
380
if variant != "" {
379
381
buildProperties .SetPath ("build.variant.path" , variantPlatformRelease .InstallDir .Join ("variants" , variant ))
380
382
}
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
+ }
381
386
382
387
for _ , tool := range pme .GetAllInstalledToolsReleases () {
383
388
buildProperties .Merge (tool .RuntimeProperties ())
You can’t perform that action at this time.
0 commit comments