mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
2add682270
This is a new modernized VS integration installer. It adds a Visual Studio .sln file which, when built, outputs a VSIX that can be used to install ourselves as a "real" Visual Studio Extension. We can even upload this extension to the visual studio marketplace. This fixes a longstanding problem where we didn't support installing into VS 2017 and higher. In addition to supporting VS 2017, due to the way this is written we now longer need to do anything special to support future versions of VS as well. Everything should "just work". This also fixes several bugs with our old integration, such as MSBuild triggering full rebuilds when /Zi was used. Finally, we add a new UI page called "LLVM" which becomes visible when the LLVM toolchain is selected. For now this only contains one option which is the path to clang-cl.exe, but in the future we can add more things here. Differential Revision: https://reviews.llvm.org/D42762 llvm-svn: 337572
34 lines
1.5 KiB
Batchfile
34 lines
1.5 KiB
Batchfile
@echo off
|
|
|
|
echo Uninstalling MSVC integration...
|
|
|
|
REM In general this script should not be used except for development and testing
|
|
REM purposes. The proper way to install is via the VSIX, and the proper way to
|
|
REM uninstall is through the Visual Studio extension manager.
|
|
|
|
REM CD to the directory of this batch file.
|
|
cd /d %~dp0
|
|
|
|
SET VCTargets=%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets
|
|
|
|
ECHO Uninstalling Common Files
|
|
IF EXIST "%VCTargets%\LLVM.Cpp.Common.props" del "%VCTargets%\LLVM.Cpp.Common.props"
|
|
IF EXIST "%VCTargets%\LLVM.Cpp.Common.targets" del "%VCTargets%\LLVM.Cpp.Common.targets"
|
|
|
|
ECHO Uninstalling x64 Platform Toolset
|
|
SET PlatformToolsets=%VCTargets%\Platforms\x64\PlatformToolsets
|
|
IF EXIST "%PlatformToolsets%\llvm\Toolset.props" del "%PlatformToolsets%\llvm\Toolset.props"
|
|
IF EXIST "%PlatformToolsets%\llvm\Toolset.targets" del "%PlatformToolsets%\llvm\Toolset.targets"
|
|
IF EXIST "%PlatformToolsets%\llvm" rd "%PlatformToolsets%\llvm"
|
|
|
|
ECHO Uninstalling Win32 Platform Toolset
|
|
SET PlatformToolsets=%VCTargets%\Platforms\Win32\PlatformToolsets
|
|
IF EXIST "%PlatformToolsets%\llvm\Toolset.props" del "%PlatformToolsets%\llvm\Toolset.props"
|
|
IF EXIST "%PlatformToolsets%\llvm\Toolset.targets" del "%PlatformToolsets%\llvm\Toolset.targets"
|
|
IF EXIST "%PlatformToolsets%\llvm" rd "%PlatformToolsets%\llvm"
|
|
|
|
ECHO Uninstalling C++ Settings UI
|
|
IF EXIST "%VCTargets%\1033\llvm-general.xml" del "%VCTargets%\1033\llvm-general.xml"
|
|
|
|
echo Done!
|