Previously we would print an error message on machines where the only VS
version we find is 2013, even though we successfully install the integration
files for it.
Also, we shouldn't have two END labels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204629
91177308-0d34-0410-b5e6-
96231b3b80d8
\r
set PLATFORM=None\r
:START\r
-IF %PLATFORM% == x64 GOTO END\r
+IF %PLATFORM% == x64 GOTO LOOPEND\r
IF %PLATFORM% == Win32 SET PLATFORM=x64\r
IF %PLATFORM% == None SET PLATFORM=Win32\r
\r
SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\%PLATFORM%\PlatformToolsets"\r
IF EXIST %D% GOTO FOUND_V120\r
\r
-:END\r
+:LOOPEND\r
IF %SUCCESS% == 1 goto DONE\r
echo Failed to find MSBuild toolsets directory.\r
goto FAILED\r
IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
copy %PLATFORM%\toolset-vs2013_xp.targets %D%\LLVM-vs2013_xp\toolset.targets\r
IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+set SUCCESS=1\r
GOTO START\r
\r
\r