Closed KawasakiNinjaH2R closed 1 year ago
I was not able to reproduce this failure. Here is the more minimal steps for what I did:
git pull
git log (HEAD is 737adea24aaa7b4ed639b689ee94d9d3e00f1a00)
git clean -fdx .
<add nuget.exe to path>
nuget restore cppwinrt.sln
msbuild /m /p:Configuration=Debug,Platform=x64 cppwinrt.sln /t:fast_fwd 2>&1
msbuild /m /p:Configuration=Debug,Platform=x64 cppwinrt.sln /t:cppwinrt 2>&1
_build\x64\Debug\cppwinrt.exe -in "C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.22621.0" -out _build\x64\Debug -verbose 2>&1
msbuild /m /p:Configuration=Debug,Platform=x64 cppwinrt.sln /t:test\test_cpp20 2>&1
_build\x64\Debug\test_cpp20.exe
And the output I get is:
===============================================================================
All tests passed (28 assertions in 6 test cases)
In case it is notable I am using the most recent 22621 Windows SDK and the most recent version of VS2022. The compiler reports the version as such:
Microsoft (R) C/C++ Optimizing Compiler Version 19.35.32216.1 for x64
This is a recent change in VS previews: https://github.com/microsoft/STL/issues/3063
The test will need to be updated to handle this change.
Thank you so much for your help! I got it!
Version
C++/WinRT v2.3.4.5
Summary
CppWinRT failed to run test_cpp20.exe on x64 and x86 on release and debug configuration with MSVC on windows. It can be reproduced on 9e89b5c on master branch. Could you please help me look at this issue?
Environment: X64 Native Tools Command Prompt For VS 2022 Windows SDK: 10.0.22621.0
Reproducible example
Expected behavior
Test pass
Actual behavior