@@ -88,7 +88,7 @@ type Builder struct {
8888 lineOffset int
8989
9090 targetPlatform * cores.PlatformRelease
91- actualPlatform * cores.PlatformRelease
91+ buildPlatform * cores.PlatformRelease
9292
9393 buildArtifacts * buildArtifacts
9494
@@ -125,18 +125,19 @@ func NewBuilder(
125125 extraCoreBuildCachePaths paths.PathList ,
126126 jobs int ,
127127 requestBuildProperties []string ,
128- hardwareDirs , otherLibrariesDirs paths.PathList ,
128+ hardwareDirs paths.PathList ,
129+ librariesDirs paths.PathList ,
129130 builtInLibrariesDirs * paths.Path ,
130131 fqbn * cores.FQBN ,
131132 clean bool ,
132133 sourceOverrides map [string ]string ,
133134 onlyUpdateCompilationDatabase bool ,
134- targetPlatform , actualPlatform * cores.PlatformRelease ,
135+ targetPlatform , buildPlatform * cores.PlatformRelease ,
135136 useCachedLibrariesResolution bool ,
136137 librariesManager * librariesmanager.LibrariesManager ,
137- libraryDirs paths.PathList ,
138+ customLibraryDirs paths.PathList ,
138139 stdout , stderr io.Writer , verbose bool , warningsLevel string ,
139- progresCB rpc.TaskProgressCB ,
140+ progressCB rpc.TaskProgressCB ,
140141 toolEnv []string ,
141142) (* Builder , error ) {
142143 buildProperties := properties .NewMap ()
@@ -191,8 +192,8 @@ func NewBuilder(
191192 logger := logger .New (stdout , stderr , verbose , warningsLevel )
192193 libsResolver , verboseOut , err := detector .LibrariesLoader (
193194 useCachedLibrariesResolution , librariesManager ,
194- builtInLibrariesDirs , libraryDirs , otherLibrariesDirs ,
195- actualPlatform , targetPlatform ,
195+ builtInLibrariesDirs , customLibraryDirs , librariesDirs ,
196+ buildPlatform , targetPlatform ,
196197 )
197198 if err != nil {
198199 return nil , err
@@ -219,14 +220,14 @@ func NewBuilder(
219220 sourceOverrides : sourceOverrides ,
220221 onlyUpdateCompilationDatabase : onlyUpdateCompilationDatabase ,
221222 compilationDatabase : compilation .NewDatabase (buildPath .Join ("compile_commands.json" )),
222- Progress : progress .New (progresCB ),
223+ Progress : progress .New (progressCB ),
223224 executableSectionsSize : []ExecutableSectionSize {},
224225 buildArtifacts : & buildArtifacts {},
225226 targetPlatform : targetPlatform ,
226- actualPlatform : actualPlatform ,
227+ buildPlatform : buildPlatform ,
227228 toolEnv : toolEnv ,
228229 buildOptions : newBuildOptions (
229- hardwareDirs , otherLibrariesDirs ,
230+ hardwareDirs , librariesDirs ,
230231 builtInLibrariesDirs , buildPath ,
231232 sk ,
232233 customBuildPropertiesArgs ,
0 commit comments