]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/Source/C/Makefiles: Fix NmakeSubdirs.bat always return 0
authorHao Wu <hao.a.wu@intel.com>
Wed, 1 Mar 2017 13:07:34 +0000 (21:07 +0800)
committerHao Wu <hao.a.wu@intel.com>
Thu, 2 Mar 2017 08:43:42 +0000 (16:43 +0800)
commita11928f3310518ab1c6fd34e8d0fdbb72de9602c
tree454a282221f7207cead5e48ae94c6a0782bc66d3
parent342fdb6eaa5934eacdf59158a99fb047fea797d6
BaseTools/Source/C/Makefiles: Fix NmakeSubdirs.bat always return 0

In batch script file NmakeSubdirs.bat, the value changes made to the
variable 'TOOL_ERROR' within the 'setlocal...endlocal' block will not be
reflected in the return value of the script. A value of 0 will always be
returned. Thus, the script will not reflect the result of the 'nmake'
command correctly when building BaseTool source codes.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/C/Makefiles/NmakeSubdirs.bat