We previously failed to check whether the SUCCESS variable was set,
and would thus always exit with a failure if vs2012 didn't exist.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192370
91177308-0d34-0410-b5e6-
96231b3b80d8
SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\PlatformToolsets"\r
IF EXIST %D% GOTO FOUND_V110\r
\r
-IF NOT SUCCESS == 1 echo Failed to find MSBuild toolsets directory.\r
-IF NOT SUCCESS == 1 goto FAILED\r
+IF %SUCCESS% == 1 goto DONE\r
+echo Failed to find MSBuild toolsets directory.\r
+goto FAILED\r
\r
\r
:FOUND_V100\r
IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets %D%\LLVM-vs2012_xp\r
IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+\r
+:DONE\r
echo Done!\r
goto END\r
\r