mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
This adds the msbuild integration files to the install, provides batch scripts for (un)installing it in a convenient way, and hooks up the nsis installer to run those scripts. Differential Revision: http://llvm-reviews.chandlerc.com/D1537 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189434 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
808 B
Batchfile
35 lines
808 B
Batchfile
@echo off
|
|
|
|
echo Uninstalling MSVC integration...
|
|
|
|
REM CD to the directory of this batch file.
|
|
cd /d %~dp0
|
|
|
|
REM Search for the MSBuild toolsets directory.
|
|
SET D="%ProgramFiles%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets"
|
|
IF EXIST %D% GOTO FOUND_MSBUILD
|
|
SET D="%ProgramFiles(x86)%\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\PlatformToolsets"
|
|
IF EXIST %D% GOTO FOUND_MSBUILD
|
|
|
|
echo Failed to find MSBuild toolsets directory.
|
|
goto FAILED
|
|
|
|
:FOUND_MSBUILD
|
|
|
|
del %D%\llvm\Microsoft.Cpp.Win32.llvm.props
|
|
IF NOT %ERRORLEVEL% == 0 GOTO FAILED
|
|
del %D%\llvm\Microsoft.Cpp.Win32.llvm.targets
|
|
IF NOT %ERRORLEVEL% == 0 GOTO FAILED
|
|
rmdir %D%\llvm
|
|
IF NOT %ERRORLEVEL% == 0 GOTO FAILED
|
|
|
|
echo Done!
|
|
goto END
|
|
|
|
:FAILED
|
|
echo MSVC integration uninstall failed.
|
|
pause
|
|
goto END
|
|
|
|
:END
|