summaryrefslogtreecommitdiff
path: root/BaseTools/Source/C
diff options
context:
space:
mode:
authorfengyunhua <fengyunhua@byosoft.com.cn>2020-10-30 11:11:08 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-11-06 02:45:40 +0000
commitdc0dae2d18d4b6f904e99e0ef9824d61ca750b3d (patch)
tree08c1f30f35a4eca07917f54835443b54fc85565d /BaseTools/Source/C
parentd00719485f6d2be3b84d076a1bd3b7f96000a57f (diff)
downloadedk2-dc0dae2d18d4b6f904e99e0ef9824d61ca750b3d.zip
edk2-dc0dae2d18d4b6f904e99e0ef9824d61ca750b3d.tar.gz
edk2-dc0dae2d18d4b6f904e99e0ef9824d61ca750b3d.tar.bz2
BaseTools: Fix BaseTools nmake cleanall hang issue
On windows system, when use command chcp displays the number of the active console code page, if the active console code is 936, run make cleanall in the BaseTools will hang. Issue reproduce step: chcp 936 edksetup.bat VS2015 cd BaseTools nmake cleanall Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Yuwei Chen <yuwei.chen@intel.com> Signed-off-by: Yunhua Feng <fengyunhua@byosoft.com.cn> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'BaseTools/Source/C')
-rw-r--r--BaseTools/Source/C/Makefiles/NmakeSubdirs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/BaseTools/Source/C/Makefiles/NmakeSubdirs.py b/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
index 9b699ea..1f4a450 100644
--- a/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
+++ b/BaseTools/Source/C/Makefiles/NmakeSubdirs.py
@@ -45,7 +45,10 @@ def RunCommand(WorkDir=None, *Args, **kwargs):
output_lock.acquire(True)
print("execute command \"{0}\" in directory {1}".format(" ".join(Args), WorkDir))
- print(message)
+ try:
+ print(message)
+ except:
+ pass
output_lock.release()
return p.returncode, stdout