diff options
author | Shi, Steven <steven.shi@intel.com> | 2019-08-15 22:26:21 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-08-20 14:06:07 +0800 |
commit | 94459080c118049aba927ec0444ba5b750b7d2c9 (patch) | |
tree | 0f9590dd9d9abd4315ad3663dbb21b8fe74308b7 /BaseTools/Source/Python/AutoGen/CacheIR.py | |
parent | d01a998612422a70366b3b6b4639d5f54de053a0 (diff) | |
download | edk2-94459080c118049aba927ec0444ba5b750b7d2c9.tar.gz edk2-94459080c118049aba927ec0444ba5b750b7d2c9.tar.bz2 edk2-94459080c118049aba927ec0444ba5b750b7d2c9.zip |
BaseTools: Improve the file saving and copying reliability
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2079
The Basetool CopyFileOnChange() and SaveFileOnChange()
functions might raise the IOError occasionally when build
in Windows with multi-process and build cache enabled.
The CopyFileOnChange() and SaveFileOnChange() might be invoked
in multiple sub-processes simultaneously, and this patch adds
global locks to sync these functions invoking which can
harden their reliability.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@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/CacheIR.py')
-rwxr-xr-x | BaseTools/Source/Python/AutoGen/CacheIR.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/CacheIR.py b/BaseTools/Source/Python/AutoGen/CacheIR.py index 2d9ffe3f0b..715be5273c 100755 --- a/BaseTools/Source/Python/AutoGen/CacheIR.py +++ b/BaseTools/Source/Python/AutoGen/CacheIR.py @@ -24,5 +24,6 @@ class ModuleBuildCacheIR(): self.MakeHashDigest = None
self.MakeHashHexDigest = None
self.MakeHashChain = []
+ self.CacheCrash = False
self.PreMakeCacheHit = False
self.MakeCacheHit = False
|