if self.IsAsBuiltInfCreated:\r
return\r
\r
- # Skip the following code for libraries\r
+ # Skip INF file generation for libraries\r
if self.IsLibrary:\r
+ # Only store the library cache if needed\r
+ if GlobalData.gBinCacheDest:\r
+ self.CopyModuleToCache()\r
return\r
\r
# Skip the following code for modules with no source files\r