build-support/factor.cmd: spruce up "unable to detect cl.exe" message. use "call" to invoke cl so it doesn't stop the batch job if it's not on the path

db4
Joe Groff 2010-05-25 20:47:20 -07:00
parent fb41d351c2
commit d34b377c12
1 changed files with 5 additions and 4 deletions

View File

@ -1,10 +1,10 @@
@echo off
if not exist Nmakefile goto wrongdir
cl 2>&1 | find "x86" >nul
call cl 2>&1 | find "x86" >nul
if not errorlevel 1 goto cl32
cl 2>&1 | find "x64" >nul
call cl 2>&1 | find "x64" >nul
if not errorlevel 1 goto cl64
goto nocl
@ -22,8 +22,9 @@ set _bootimage="boot.winnt-x86.64.image"
goto platformdefined
:nocl
echo "Unable to detect cl.exe target platform."
goto fail
echo Unable to detect cl.exe target platform.
echo Make sure you're running within the Visual Studio or Windows SDK environment.
goto cleanup
:platformdefined