Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Aug 23, 2024
1 parent 2f7dd72 commit a3ec767
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/arduino/builder/libraries.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,17 @@ func (b *Builder) compileLibrary(library *libraries.Library, includes []string)
b.logger.Info(i18n.Tr(`Compiling library "%[1]s"`, library.Name))
}

/* TODO: if a single library needs a rebuild then all libraries requires a rebuild.
This means that the `canUseArchivedLib` must be checked for all libraries
in advance in the `compileLibraries` method.
*/

var targetArchivedLibrary *paths.Path
if b.librariesBuildCachePath != nil {
archivedLibName := getCachedLibraryArchiveDirName(
b.buildProperties.Get("build.fqbn"),
b.buildProperties.Get("compiler.optimization_flags"),
/* TODO: Add included library set here */
library.InstallDir,
)

Expand Down

0 comments on commit a3ec767

Please sign in to comment.