-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Win][MSVC2017] Failed to find MSBuild toolsets directory #33019
Comments
These scripts have never been updated. The toolset is also still named LLVM-vs2014. Seems like the ms-compat options are not correct anymore either: There is an attempt at solving this: |
I started working on a patch, since I wanted to use the C++17 additions to the STL. For VS2017 Microsoft changed the directory structure, to allow independent installations of VS and so you can install VS where you want. That part I have mostly done now. And there are some issues still. To try the changes to the integration system, I created a stand-alone implementation for Clang v5.0.1. @Trass3r Thanks for the link. I'll have to take a look at your PR on WubbaLubba's implementation. |
Has been merged in the meantime. |
I am using Visual Studio Community 2017 15.6.2. I installed LLVM-6.0.0-win64.exe. LLVM-vs2014 toolset appeared in the list of toolset in Visual Studio. However, when I tried to set it to a project, I got this error: 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Redirect.14.props(47,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.cpp.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. Unfortunately, the fix proposed by Roelf-Jilling Wolthuis did not help. I created a corresponding issue: Arik-Playground/LlvmForVS2017#5 |
Excuse me, I've pushed the updated prop-files to point to the correct LLVM path for v6.0.0. Note, that if you want to use the LLVM-vs2014 integration, you need to have v140 of the VC++ toolset (VS2015) installed. It is available in the VS2017 installer as "VC++ 2015.3 toolset for desktop (x86,x64)". The install script at: https://github.com/Farwaykorse/VS_Clang I have an outstanding fix for LLVM to fix the paths, D42595. |
Hi, Roelf-Jilling Wolthuis, Could you please clarify what exactly I need to do to test your fix? |
I've pushed a version of the script that pauses after running, so you can see the output without running it from the console.
Note: If you downloaded the zip-file, Windows might show a Defender SmartScreen. You can click Or, if you don't trust the script, you can copy the files manually.
So in this example:
Repeat for 64-bit:
When you have "Windows XP support for C++" installed, you'll notice you have two folders in
|
Hey Zach isn't this fixed with the new extension? |
Since the file install.bat was removed, there is no reason to complain. |
Extended Description
LLVM\tools\msbuild\install.bat does not support toolset v141.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: