mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 07:53:33 -10:00
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 <[email protected]> Cc: Liming Gao <[email protected]> Cc: Yonghong Zhu <[email protected]> Signed-off-by: Yunhua Feng <[email protected]> Reviewed-by: Yonghong Zhu <[email protected]>