43
43
func (b * Builder ) BuildLibraries (
44
44
includesFolders paths.PathList ,
45
45
importedLibraries libraries.List ,
46
- onlyUpdateCompilationDatabase bool ,
47
46
compilationDatabase * compilation.Database ,
48
47
progress * progress.Struct , progressCB rpc.TaskProgressCB ,
49
48
) (paths.PathList , error ) {
@@ -56,7 +55,6 @@ func (b *Builder) BuildLibraries(
56
55
57
56
librariesObjectFiles , err := b .compileLibraries (
58
57
libs , includes ,
59
- onlyUpdateCompilationDatabase ,
60
58
compilationDatabase ,
61
59
progress , progressCB ,
62
60
)
@@ -128,7 +126,6 @@ func (b *Builder) findExpectedPrecompiledLibFolder(
128
126
129
127
func (b * Builder ) compileLibraries (
130
128
libraries libraries.List , includes []string ,
131
- onlyUpdateCompilationDatabase bool ,
132
129
compilationDatabase * compilation.Database ,
133
130
progress * progress.Struct , progressCB rpc.TaskProgressCB ,
134
131
) (paths.PathList , error ) {
@@ -139,7 +136,6 @@ func (b *Builder) compileLibraries(
139
136
for _ , library := range libraries {
140
137
libraryObjectFiles , err := b .compileLibrary (
141
138
library , includes ,
142
- onlyUpdateCompilationDatabase ,
143
139
compilationDatabase ,
144
140
progress , progressCB ,
145
141
)
@@ -163,7 +159,6 @@ func (b *Builder) compileLibraries(
163
159
164
160
func (b * Builder ) compileLibrary (
165
161
library * libraries.Library , includes []string ,
166
- onlyUpdateCompilationDatabase bool ,
167
162
compilationDatabase * compilation.Database ,
168
163
progress * progress.Struct , progressCB rpc.TaskProgressCB ,
169
164
) (paths.PathList , error ) {
@@ -228,7 +223,7 @@ func (b *Builder) compileLibrary(
228
223
if library .Layout == libraries .RecursiveLayout {
229
224
libObjectFiles , err := utils .CompileFilesRecursive (
230
225
library .SourceDir , libraryBuildPath , b .buildProperties , includes ,
231
- onlyUpdateCompilationDatabase ,
226
+ b . onlyUpdateCompilationDatabase ,
232
227
compilationDatabase ,
233
228
b .jobs ,
234
229
b .logger ,
@@ -240,7 +235,7 @@ func (b *Builder) compileLibrary(
240
235
if library .DotALinkage {
241
236
archiveFile , verboseInfo , err := utils .ArchiveCompiledFiles (
242
237
libraryBuildPath , paths .New (library .DirName + ".a" ), libObjectFiles , b .buildProperties ,
243
- onlyUpdateCompilationDatabase , b .logger .Verbose (),
238
+ b . onlyUpdateCompilationDatabase , b .logger .Verbose (),
244
239
b .logger .Stdout (), b .logger .Stderr (),
245
240
)
246
241
if b .logger .Verbose () {
@@ -259,7 +254,7 @@ func (b *Builder) compileLibrary(
259
254
}
260
255
libObjectFiles , err := utils .CompileFiles (
261
256
library .SourceDir , libraryBuildPath , b .buildProperties , includes ,
262
- onlyUpdateCompilationDatabase ,
257
+ b . onlyUpdateCompilationDatabase ,
263
258
compilationDatabase ,
264
259
b .jobs ,
265
260
b .logger ,
@@ -274,7 +269,7 @@ func (b *Builder) compileLibrary(
274
269
utilityBuildPath := libraryBuildPath .Join ("utility" )
275
270
utilityObjectFiles , err := utils .CompileFiles (
276
271
library .UtilityDir , utilityBuildPath , b .buildProperties , includes ,
277
- onlyUpdateCompilationDatabase ,
272
+ b . onlyUpdateCompilationDatabase ,
278
273
compilationDatabase ,
279
274
b .jobs ,
280
275
b .logger ,
0 commit comments