SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\%PLATFORM%\PlatformToolsets"\r
IF EXIST %D% GOTO FOUND_V120\r
\r
+:TRY_V140\r
+SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\%PLATFORM%\PlatformToolsets"\r
+IF EXIST %D% GOTO FOUND_V140\r
+SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\V140\Platforms\%PLATFORM%\PlatformToolsets"\r
+IF EXIST %D% GOTO FOUND_V140\r
+\r
:LOOPEND\r
IF %SUCCESS% == 1 goto DONE\r
echo Failed to find MSBuild toolsets directory.\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 TRY_V140\r
+\r
+:FOUND_V140\r
+IF NOT EXIST %D%\LLVM-vs2014 mkdir %D%\LLVM-vs2014\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+copy %PLATFORM%\toolset-vs2014.props %D%\LLVM-vs2014\toolset.props\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+copy %PLATFORM%\toolset-vs2014.targets %D%\LLVM-vs2014\toolset.targets\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+IF NOT EXIST %D%\LLVM-vs2014_xp mkdir %D%\LLVM-vs2014_xp\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+copy %PLATFORM%\toolset-vs2014_xp.props %D%\LLVM-vs2014_xp\toolset.props\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+copy %PLATFORM%\toolset-vs2014_xp.targets %D%\LLVM-vs2014_xp\toolset.targets\r
+IF NOT %ERRORLEVEL% == 0 GOTO FAILED\r
+set SUCCESS=1\r
GOTO START\r
\r
\r