diff options
author | Shi, Steven <steven.shi@intel.com> | 2019-06-11 14:33:16 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-06-17 17:00:45 +0800 |
commit | ede54e3588173178ec054b5c4dc181d3c63872b2 (patch) | |
tree | 72eb87d0fbf4d3c770250826e5b4298a4d48bb1c /BaseTools/Source/Python/AutoGen/AutoGen.py | |
parent | 84f736a73e7a435e2f087f2c5953553ee4f8387a (diff) | |
download | edk2-ede54e3588173178ec054b5c4dc181d3c63872b2.tar.gz edk2-ede54e3588173178ec054b5c4dc181d3c63872b2.tar.bz2 edk2-ede54e3588173178ec054b5c4dc181d3c63872b2.zip |
BaseTools:Build cache cannot store the cache files for library package
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1867
Current build cache cannot store the cache for library package.
build -p MdePkg\MdePkg.dsc -a IA32 -b DEBUG -t VS2015x86 --hash
--binary-destination=BinCache
After build, the expected result is the BinCache folder is generated
and the MdePkg build cache files (e.g. .hash and .lib) are stored in
the BinCache folder. But the BinCache folder is not generated at all.
This patch is going to fix that issue.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Zhiju.Fan <zhijux.fan@intel.com>
Signed-off-by: Steven Shi <steven.shi@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/AutoGen.py')
-rw-r--r-- | BaseTools/Source/Python/AutoGen/AutoGen.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py index 3f41fbb507..f59a8038d5 100644 --- a/BaseTools/Source/Python/AutoGen/AutoGen.py +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py @@ -3569,8 +3569,11 @@ class ModuleAutoGen(AutoGen): if self.IsAsBuiltInfCreated:
return
- # Skip the following code for libraries
+ # Skip INF file generation for libraries
if self.IsLibrary:
+ # Only store the library cache if needed
+ if GlobalData.gBinCacheDest:
+ self.CopyModuleToCache()
return
# Skip the following code for modules with no source files
|