@@ -88,7 +88,7 @@ type Builder struct {
88
88
lineOffset int
89
89
90
90
targetPlatform * cores.PlatformRelease
91
- actualPlatform * cores.PlatformRelease
91
+ buildPlatform * cores.PlatformRelease
92
92
93
93
buildArtifacts * buildArtifacts
94
94
@@ -125,18 +125,19 @@ func NewBuilder(
125
125
extraCoreBuildCachePaths paths.PathList ,
126
126
jobs int ,
127
127
requestBuildProperties []string ,
128
- hardwareDirs , otherLibrariesDirs paths.PathList ,
128
+ hardwareDirs paths.PathList ,
129
+ librariesDirs paths.PathList ,
129
130
builtInLibrariesDirs * paths.Path ,
130
131
fqbn * cores.FQBN ,
131
132
clean bool ,
132
133
sourceOverrides map [string ]string ,
133
134
onlyUpdateCompilationDatabase bool ,
134
- targetPlatform , actualPlatform * cores.PlatformRelease ,
135
+ targetPlatform , buildPlatform * cores.PlatformRelease ,
135
136
useCachedLibrariesResolution bool ,
136
137
librariesManager * librariesmanager.LibrariesManager ,
137
- libraryDirs paths.PathList ,
138
+ customLibraryDirs paths.PathList ,
138
139
stdout , stderr io.Writer , verbose bool , warningsLevel string ,
139
- progresCB rpc.TaskProgressCB ,
140
+ progressCB rpc.TaskProgressCB ,
140
141
toolEnv []string ,
141
142
) (* Builder , error ) {
142
143
buildProperties := properties .NewMap ()
@@ -191,8 +192,8 @@ func NewBuilder(
191
192
logger := logger .New (stdout , stderr , verbose , warningsLevel )
192
193
libsResolver , verboseOut , err := detector .LibrariesLoader (
193
194
useCachedLibrariesResolution , librariesManager ,
194
- builtInLibrariesDirs , libraryDirs , otherLibrariesDirs ,
195
- actualPlatform , targetPlatform ,
195
+ builtInLibrariesDirs , customLibraryDirs , librariesDirs ,
196
+ buildPlatform , targetPlatform ,
196
197
)
197
198
if err != nil {
198
199
return nil , err
@@ -219,14 +220,14 @@ func NewBuilder(
219
220
sourceOverrides : sourceOverrides ,
220
221
onlyUpdateCompilationDatabase : onlyUpdateCompilationDatabase ,
221
222
compilationDatabase : compilation .NewDatabase (buildPath .Join ("compile_commands.json" )),
222
- Progress : progress .New (progresCB ),
223
+ Progress : progress .New (progressCB ),
223
224
executableSectionsSize : []ExecutableSectionSize {},
224
225
buildArtifacts : & buildArtifacts {},
225
226
targetPlatform : targetPlatform ,
226
- actualPlatform : actualPlatform ,
227
+ buildPlatform : buildPlatform ,
227
228
toolEnv : toolEnv ,
228
229
buildOptions : newBuildOptions (
229
- hardwareDirs , otherLibrariesDirs ,
230
+ hardwareDirs , librariesDirs ,
230
231
builtInLibrariesDirs , buildPath ,
231
232
sk ,
232
233
customBuildPropertiesArgs ,
0 commit comments