4343func (b * Builder ) BuildLibraries (
4444 includesFolders paths.PathList ,
4545 importedLibraries libraries.List ,
46- onlyUpdateCompilationDatabase bool ,
4746 compilationDatabase * compilation.Database ,
4847 progress * progress.Struct , progressCB rpc.TaskProgressCB ,
4948) (paths.PathList , error ) {
@@ -56,7 +55,6 @@ func (b *Builder) BuildLibraries(
5655
5756 librariesObjectFiles , err := b .compileLibraries (
5857 libs , includes ,
59- onlyUpdateCompilationDatabase ,
6058 compilationDatabase ,
6159 progress , progressCB ,
6260 )
@@ -128,7 +126,6 @@ func (b *Builder) findExpectedPrecompiledLibFolder(
128126
129127func (b * Builder ) compileLibraries (
130128 libraries libraries.List , includes []string ,
131- onlyUpdateCompilationDatabase bool ,
132129 compilationDatabase * compilation.Database ,
133130 progress * progress.Struct , progressCB rpc.TaskProgressCB ,
134131) (paths.PathList , error ) {
@@ -139,7 +136,6 @@ func (b *Builder) compileLibraries(
139136 for _ , library := range libraries {
140137 libraryObjectFiles , err := b .compileLibrary (
141138 library , includes ,
142- onlyUpdateCompilationDatabase ,
143139 compilationDatabase ,
144140 progress , progressCB ,
145141 )
@@ -163,7 +159,6 @@ func (b *Builder) compileLibraries(
163159
164160func (b * Builder ) compileLibrary (
165161 library * libraries.Library , includes []string ,
166- onlyUpdateCompilationDatabase bool ,
167162 compilationDatabase * compilation.Database ,
168163 progress * progress.Struct , progressCB rpc.TaskProgressCB ,
169164) (paths.PathList , error ) {
@@ -228,7 +223,7 @@ func (b *Builder) compileLibrary(
228223 if library .Layout == libraries .RecursiveLayout {
229224 libObjectFiles , err := utils .CompileFilesRecursive (
230225 library .SourceDir , libraryBuildPath , b .buildProperties , includes ,
231- onlyUpdateCompilationDatabase ,
226+ b . onlyUpdateCompilationDatabase ,
232227 compilationDatabase ,
233228 b .jobs ,
234229 b .logger ,
@@ -240,7 +235,7 @@ func (b *Builder) compileLibrary(
240235 if library .DotALinkage {
241236 archiveFile , verboseInfo , err := utils .ArchiveCompiledFiles (
242237 libraryBuildPath , paths .New (library .DirName + ".a" ), libObjectFiles , b .buildProperties ,
243- onlyUpdateCompilationDatabase , b .logger .Verbose (),
238+ b . onlyUpdateCompilationDatabase , b .logger .Verbose (),
244239 b .logger .Stdout (), b .logger .Stderr (),
245240 )
246241 if b .logger .Verbose () {
@@ -259,7 +254,7 @@ func (b *Builder) compileLibrary(
259254 }
260255 libObjectFiles , err := utils .CompileFiles (
261256 library .SourceDir , libraryBuildPath , b .buildProperties , includes ,
262- onlyUpdateCompilationDatabase ,
257+ b . onlyUpdateCompilationDatabase ,
263258 compilationDatabase ,
264259 b .jobs ,
265260 b .logger ,
@@ -274,7 +269,7 @@ func (b *Builder) compileLibrary(
274269 utilityBuildPath := libraryBuildPath .Join ("utility" )
275270 utilityObjectFiles , err := utils .CompileFiles (
276271 library .UtilityDir , utilityBuildPath , b .buildProperties , includes ,
277- onlyUpdateCompilationDatabase ,
272+ b . onlyUpdateCompilationDatabase ,
278273 compilationDatabase ,
279274 b .jobs ,
280275 b .logger ,
0 commit comments