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