mirror of https://github.com/acidanthera/audk.git
2378ea5515
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1894 Basetool need a CopyFileOnChange() function to avoid cache file writing race in multi-thread build. Some platforms build fail with file IO writing race issue when the build cache is enabled to store cache files in multi-threads. This is because common same library cache files (e.g. some libs in MdePkg) can be stored by many different driver modules' build threads at same time. Current build cache need a function to check whether the same cache file already exist, and only copy source file if it is different from the destination file. This patch introduces an atomic copy function to avoid duplicated cache files copy. Cc: Liming Gao <liming.gao@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Christian Rodriguez <christian.rodriguez@intel.com> Signed-off-by: Steven Shi <steven.shi@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> |
||
---|---|---|
.. | ||
Edk2 | ||
Uefi | ||
BuildToolError.py | ||
BuildVersion.py | ||
DataType.py | ||
EdkLogger.py | ||
Expression.py | ||
GlobalData.py | ||
LongFilePathOs.py | ||
LongFilePathOsPath.py | ||
LongFilePathSupport.py | ||
Misc.py | ||
MultipleWorkspace.py | ||
Parsing.py | ||
RangeExpression.py | ||
StringUtils.py | ||
TargetTxtClassObject.py | ||
ToolDefClassObject.py | ||
VariableAttributes.py | ||
VpdInfoFile.py | ||
__init__.py | ||
caching.py |