BaseTools toolsetup.bat: set PATH to include Bin Win32 directory

Bin Win32 directory includes antlr.exe. This tool is used when compile
BaseTools source code. So, set it into PATH first.

Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
Liming Gao 2016-12-29 10:52:01 +08:00
parent 5d98c319bb
commit 61e947457e
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,7 @@ if /I "%1"=="/?" goto Usage
if exist %EDK_TOOLS_PATH%\Bin\Win32 (
set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\Bin\Win32
) else (
set "PATH=%EDK_TOOLS_PATH%\Bin\Win32;%PATH%"
echo.
echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!!
echo Please check the directory %EDK_TOOLS_PATH%\Bin\Win32
@ -139,6 +140,7 @@ if /I "%1"=="/?" goto Usage
if exist %EDK_TOOLS_PATH%\Bin\Win32 (
set EDK_TOOLS_BIN=%EDK_TOOLS_PATH%\Bin\Win32
) else (
set "PATH=%EDK_TOOLS_PATH%\Bin\Win32;%PATH%"
echo.
echo !!! ERROR !!! Cannot find BaseTools Bin Win32!!!
echo Please check the directory %EDK_TOOLS_PATH%\Bin\Win32