[llvm] r192370 - Fix msbuild integration install script.

Hans Wennborg hans at hanshq.net
Thu Oct 10 10:31:54 PDT 2013


Author: hans
Date: Thu Oct 10 12:31:54 2013
New Revision: 192370

URL: http://llvm.org/viewvc/llvm-project?rev=192370&view=rev
Log:
Fix msbuild integration install script.

We previously failed to check whether the SUCCESS variable was set,
and would thus always exit with a failure if vs2012 didn't exist.

Modified:
    llvm/trunk/tools/msbuild/install.bat

Modified: llvm/trunk/tools/msbuild/install.bat
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/msbuild/install.bat?rev=192370&r1=192369&r2=192370&view=diff
==============================================================================
--- llvm/trunk/tools/msbuild/install.bat (original)
+++ llvm/trunk/tools/msbuild/install.bat Thu Oct 10 12:31:54 2013
@@ -18,8 +18,9 @@ IF EXIST %D% GOTO FOUND_V110
 SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V110\Platforms\Win32\PlatformToolsets"
 IF EXIST %D% GOTO FOUND_V110
 
-IF NOT SUCCESS == 1 echo Failed to find MSBuild toolsets directory.
-IF NOT SUCCESS == 1 goto FAILED
+IF %SUCCESS% == 1 goto DONE
+echo Failed to find MSBuild toolsets directory.
+goto FAILED
 
 
 :FOUND_V100
@@ -45,6 +46,8 @@ copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.
 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
 copy Microsoft.Cpp.Win32.LLVM-vs2012_xp.targets %D%\LLVM-vs2012_xp
 IF NOT %ERRORLEVEL% == 0 GOTO FAILED
+
+:DONE
 echo Done!
 goto END
 





More information about the llvm-commits mailing list