@@ -89,7 +89,7 @@ type Builder struct {
8989 lineOffset int
9090
9191 targetPlatform * cores.PlatformRelease
92- actualPlatform * cores.PlatformRelease
92+ buildPlatform * cores.PlatformRelease
9393
9494 buildArtifacts * buildArtifacts
9595
@@ -126,18 +126,19 @@ func NewBuilder(
126126 extraCoreBuildCachePaths paths.PathList ,
127127 jobs int ,
128128 requestBuildProperties []string ,
129- hardwareDirs , otherLibrariesDirs paths.PathList ,
129+ hardwareDirs paths.PathList ,
130+ librariesDirs paths.PathList ,
130131 builtInLibrariesDirs * paths.Path ,
131132 fqbn * fqbn.FQBN ,
132133 clean bool ,
133134 sourceOverrides map [string ]string ,
134135 onlyUpdateCompilationDatabase bool ,
135- targetPlatform , actualPlatform * cores.PlatformRelease ,
136+ targetPlatform , buildPlatform * cores.PlatformRelease ,
136137 useCachedLibrariesResolution bool ,
137138 librariesManager * librariesmanager.LibrariesManager ,
138- libraryDirs paths.PathList ,
139+ customLibraryDirs paths.PathList ,
139140 stdout , stderr io.Writer , verbosity logger.Verbosity , warningsLevel string ,
140- progresCB rpc.TaskProgressCB ,
141+ progressCB rpc.TaskProgressCB ,
141142 toolEnv []string ,
142143) (* Builder , error ) {
143144 buildProperties := properties .NewMap ()
@@ -192,8 +193,8 @@ func NewBuilder(
192193 log := logger .New (stdout , stderr , verbosity , warningsLevel )
193194 libsResolver , verboseOut , err := detector .LibrariesLoader (
194195 useCachedLibrariesResolution , librariesManager ,
195- builtInLibrariesDirs , libraryDirs , otherLibrariesDirs ,
196- actualPlatform , targetPlatform ,
196+ builtInLibrariesDirs , customLibraryDirs , librariesDirs ,
197+ buildPlatform , targetPlatform ,
197198 )
198199 if err != nil {
199200 return nil , err
@@ -220,14 +221,14 @@ func NewBuilder(
220221 sourceOverrides : sourceOverrides ,
221222 onlyUpdateCompilationDatabase : onlyUpdateCompilationDatabase ,
222223 compilationDatabase : compilation .NewDatabase (buildPath .Join ("compile_commands.json" )),
223- Progress : progress .New (progresCB ),
224+ Progress : progress .New (progressCB ),
224225 executableSectionsSize : []ExecutableSectionSize {},
225226 buildArtifacts : & buildArtifacts {},
226227 targetPlatform : targetPlatform ,
227- actualPlatform : actualPlatform ,
228+ buildPlatform : buildPlatform ,
228229 toolEnv : toolEnv ,
229230 buildOptions : newBuildOptions (
230- hardwareDirs , otherLibrariesDirs ,
231+ hardwareDirs , librariesDirs ,
231232 builtInLibrariesDirs , buildPath ,
232233 sk ,
233234 customBuildPropertiesArgs ,
0 commit comments