-
Notifications
You must be signed in to change notification settings - Fork 3k
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
C++ / MSBuild not using latest toolset #7487
Comments
Hello @marc2k3 , I'll have a look |
using the following snippet
it turns out that |
Thanks for looking in to this. I was able to override the VCToolsVersion in my .vcxproj and the build now succeeds... diff --git a/src/foo_musicbrainz64.vcxproj b/src/foo_musicbrainz64.vcxproj
index 4d4755a..925f188 100644
--- a/src/foo_musicbrainz64.vcxproj
+++ b/src/foo_musicbrainz64.vcxproj
@@ -23,6 +23,7 @@
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
+ <VCToolsVersion>14.35.32215</VCToolsVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
@@ -30,6 +31,7 @@
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
+ <VCToolsVersion>14.35.32215</VCToolsVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings" /> Successful build: https://github.com/marc2k3/foo_musicbrainz64/actions/runs/4801242199 |
I've found that we install several VS workloads, couple of them are we'll address it in some way. thanks for finding! |
as a side note, |
- cmake - ubuntu linux - clang-cl toolchain - use ms analysis
I see this is fixed now. Thanks. |
Has this been deployed? I am still seeing 14.34 being used for my C++ projects using MSBuild. |
I ran this just now... VS 17.6.3 here: https://github.com/marc2k3/foo_input_ofr/actions/runs/5175984478/jobs/9324251598#step:7:8 It would be nice if it was on 14.36 to match VS 17.6 though! edit: totally irrelevant for that linked project, it doesn't use any modern C++ at all. It's just the one public repo I have right now. |
I'm using Azure DevOps so that could be the difference. Operating System ClCompile: This is using MSBuild but a CMake project I've tested seems ok... |
Hmmm, re-ran this pipeline and it's now using VS2022 17.6 but it's using 14.35 not 14.36 so looks like there's still an issue Operating System ClCompile: |
You shouldn't have to but you can append I tested it just now and it works on this GH actions image
.github/workflows/build.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index fbee277..572bf86 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -31,7 +31,7 @@ jobs:
- name: Build x86
working-directory: ${{ matrix.project }}
run: |
- msbuild src\${{ matrix.project }}.sln -m -p:Platform=Win32 -p:Configuration=Release
+ msbuild src\${{ matrix.project }}.sln -m -p:Platform=Win32 -p:Configuration=Release -p:VCToolsVersion=14.36.32532
copy src\Win32\Release\${{ matrix.project }}.dll ..\component
copy src\Win32\Release\${{ matrix.project }}.pdb ..\component
copy OptimFROG\Win32-files\OptimFROG.dll ..\component
@@ -40,7 +40,7 @@ jobs:
- name: Build x64
working-directory: ${{ matrix.project }}
run: |
- msbuild src\${{ matrix.project }}.sln -m -p:Platform=x64 -p:Configuration=Release
+ msbuild src\${{ matrix.project }}.sln -m -p:Platform=x64 -p:Configuration=Release -p:VCToolsVersion=14.36.32532
copy src\x64\Release\${{ matrix.project }}.dll ..\component\x64
copy src\x64\Release\${{ matrix.project }}.pdb ..\component\x64
copy OptimFROG\x64-files\OptimFROG.dll ..\component\x64 |
Description
VS 2022 17.5 should be using the latest 14.35 toolset but it's not.
Platforms affected
Runner images affected
Image version and build link
Image: windows-2022
Version: 20230417.1
Included Software: https://github.com/actions/runner-images/blob/win22/20230417.1/images/win/Windows2022-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20230417.1
Is it regression?
No
Expected behavior
Expecting the latest 14.35 toolset to be used.
Actual behavior
14.34 toolset is being used as can be seen here...
https://github.com/marc2k3/foo_musicbrainz64/actions/runs/4796230044/jobs/8531766018#step:6:562
Repro steps
This causes the build to error here...
https://github.com/marc2k3/foo_musicbrainz64/actions/runs/4796230044/jobs/8531766018#step:6:570
I'm using /std:c++latest expecting the latest std::ranges toys like fold_left, zip_view etc to work.
The text was updated successfully, but these errors were encountered: