diff options
author | Yunhua Feng <yunhuax.feng@intel.com> | 2019-04-11 12:57:15 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2019-04-22 10:05:52 +0800 |
commit | 0b836855fb4df66f7ca035a7b67a064c0088ed69 (patch) | |
tree | 2f43aa6520c130b2b959e73e1f1ed30f60b4c10b /BaseTools/Source/Python/Workspace | |
parent | e72920ec617ba1fceb114b3bb2a587a8e836734b (diff) | |
download | edk2-0b836855fb4df66f7ca035a7b67a064c0088ed69.tar.gz edk2-0b836855fb4df66f7ca035a7b67a064c0088ed69.tar.bz2 edk2-0b836855fb4df66f7ca035a7b67a064c0088ed69.zip |
BaseTools: Sometime write file not immediate to disk
BZ: https://bugzilla.tianocore.org/process_bug.cgi
On Windows OS, sometime the generated file is not immediate saved to disk.
When run nmake, prompt AutoGen.h not found, and stop build.
Below blog shows Write-Replace to fix it. This patch uses this way to write
temp file, then rename the temp file to the real file.
https://blog.gocept.com/2013/07/15/reliable-file-updates-with-python/
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/Workspace')
0 files changed, 0 insertions, 0 deletions