Skip to content

Commit f36c2a6

Browse files
committed
Made BuildOptionsManager a field of Builder
1 parent a0520f2 commit f36c2a6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arduino/builder/builder.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ type Builder struct {
7979

8080
buildArtifacts *BuildArtifacts
8181

82+
buildOptions *BuildOptionsManager
83+
8284
*detector.SketchLibrariesDetector
83-
*BuildOptionsManager
8485
}
8586

8687
// BuildArtifacts contains the result of various build
@@ -207,7 +208,7 @@ func NewBuilder(
207208
onlyUpdateCompilationDatabase,
208209
logger,
209210
),
210-
BuildOptionsManager: NewBuildOptionsManager(
211+
buildOptions: NewBuildOptionsManager(
211212
hardwareDirs, builtInToolsDirs, otherLibrariesDirs,
212213
builtInLibrariesDirs, buildPath,
213214
sk,
@@ -248,7 +249,7 @@ func (b *Builder) preprocess() error {
248249
return err
249250
}
250251

251-
if err := b.BuildOptionsManager.WipeBuildPath(b.logger); err != nil {
252+
if err := b.buildOptions.WipeBuildPath(b.logger); err != nil {
252253
return err
253254
}
254255
b.Progress.CompleteStep()

0 commit comments

Comments
 (0)