From 61e947457e42320bd15e2f488742996359ca5420 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Thu, 29 Dec 2016 10:52:01 +0800 Subject: [PATCH] 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 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Yonghong Zhu --- BaseTools/toolsetup.bat | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat index 92d0ba8834..3801ce033f 100755 --- a/BaseTools/toolsetup.bat +++ b/BaseTools/toolsetup.bat @@ -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