Open amitin opened 5 years ago
Can the information from here help? https://github.com/zufuliu/llvm-utils
Yes, I can see it installed and its version is 1.0.359557. See attachment.
Additionally, here is cmake output while I attempt to configure my project with -T"llvm". C:\Program Files\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(378,5): error MSB8020: The build tools for llvm (Platform Toolset = 'llvm') cannot be found. To build using the llvm build tools, please install llvm build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution". [C:\workspace\test\CMakeFiles\3.14.0\VCTargetsPath.vcxproj]
Attempting to manually retarget my project generated with standard toolset has no effect because I cannot see 'llvm' as an optional toolset in MSVS IDE.
If you can't see LLVM in the Platform Toolshet option list in the MSVS IDE, then it seems the extension isn't installed properly in VS2019.
Does it show up in the Extensions > Manage Extensions menu?
It's only the latest version of the extension (1.0.359557) that installs into VS2019. Is that the version you have?
Extended Description
Having installed MSVS 2019 Professional and 'LLVM Compiler Toolchain' extension, I use -T"llvm" cmake argument for my cmake-based project to get it targeted to llvm toolset. But Visual Studio 2019 reports that it's an unknown toolset. Attempting to manually retarget my project generated with standard toolset has no effect because I cannot see 'llvm' as an optional toolset in MSVS IDE.
However, it works just fine with Visual Studio 2017.
As a workaround, I copied all llvm-related stuff from C:\Program Files\Microsoft Visual Studio\2019\Professional\Common7\IDE\VC\VCTargets to C:\Program Files\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160