]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/AutoGen.py
BaseTools:Build cache cannot store the cache files for library package
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / AutoGen.py
index 3f41fbb507aabd88c3ae918661fce188e10ce533..f59a8038d5a7cf7a5ffa82e2cb6ec235559f7ddf 100644 (file)
@@ -3569,8 +3569,11 @@ class ModuleAutoGen(AutoGen):
         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