Toolset update: VS 2022 17.10 Preview 3#4576
Toolset update: VS 2022 17.10 Preview 3#4576StephanTLavavej merged 28 commits intomicrosoft:mainfrom
Conversation
This eliminates weird lines: ``` PS>$global:? True ```
This was the only affected invocation.
This should save 50 MB. See: https://docs.python.org/3/using/windows.html
This uses the exact same `System.Security.Cryptography.RandomNumberGenerator` machinery: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-securerandom?view=powershell-7.4 It was added in PowerShell 7.4, released 2023-11-16: https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-74?view=powershell-7.4
I had removed this environment variable technique in GH 3651, saying "The previous method stopped working.", but it clearly works here now. Let's keep both.
``` stl-lit.py: D:\GitHub\STL\llvm-project\llvm\utils\lit\lit\main.py:72: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 240 seconds was requested on the command line. Forcing timeout to be 240 seconds. stl-lit.py: D:\GitHub\STL\llvm-project\llvm\utils\lit\lit\LitConfig.py:129: fatal: Setting a timeout per test not supported. Requires the Python psutil module but it could not be found. Try installing it via pip or via your operating system's package manager. ```
`std.ixx` was explicitly including `<yvals_core.h>` for the workaround, which is no longer necessary.
VSO-1975579 "Standard Library Modules: fatal error C1116: unrecoverable error importing module 'std'. Specialization of 'std::invoke_result_t' with arguments '_Fn, _Ty...'".
… (fixed) and LLVM-41915 (still active). VSO-119526 "Multiple versions of special member function should be allowed" was fixed after 11 years. LLVM-41915 "Implement CWG 1496" is still active, but implementing `is_trivial` with `__is_trivially_constructible(_Ty) && __is_trivially_copyable(_Ty)` isn't a transparent workaround - it causes DevCom-1586179 VSO-1439353 "std::is_trivial incorrectly fails because of protected defaulted default constructor". Let's just use the dedicated compiler builtin, and blame the compiler if it goes wrong - we've moved away from attempting to compensate for compiler deficiencies in type traits.
…ng), but (portably) trivially default constructible.
|
/azp run STL-ASan-CI |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
STL-ASan-CI passed. |
CaseyCarter
left a comment
There was a problem hiding this comment.
This is amazing - so much red!
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
microsoft/vcpkg#40658 I guess I ended up somewhere pretty close with a recent complaint about ConvertTo-SecureString 😅
I believe that this was extra ultra paranoia of avoiding PowerShell's alias of "curl" to "Invoke-WebRequest".
I think that whole mess was copy pasta from somewhere else; getting this to do the right thing at least at one time or another was a pain because the installer binary would return control to the console immediately. |
📜 Changelog
is_trivialto correctly handle unusual types.💡 Non-Changelog Overview
create-1es-hosted-pool.ps1: AvoidConvertTo-SecureString#4535 broke them), and massively overhauls/simplifies them (also getting rid of the weird "run as admin" dance).pipto installpsutil, which gives up our ability to have per-test timeouts, but we weren't relying on them anyways (and I don't use them locally). We still have overall timeouts enforced by Azure Pipelines.⚙️ Commits
Invoke-AzVMRunCommandgives us, and everything works.exitto improve the transcript.curl.exe./quietinstead of/passive, and don't install docs./quietmeans "to install/uninstall without displaying any UI"/passivemeans "to display progress without requiring user interaction"$ProgressPreferenceto the top, drop duplicate$ErrorActionPreference.Get-SecureRandom.System.Security.Cryptography.RandomNumberGeneratormachinery. SeeGet-SecureRandomdocs.Update-AzConfigitself.PrintMsiExitCodeMessage.cmd.exe /c.DownloadAndInstall.psutiland--timeout=240.psutil, attempting to use--timeoutemits:New-AzGalleryImageVersionneeds-SourceImageVMIdin Azure PowerShell 11.5.0.New-AzResource(and investigating by running the script is extremely time-consuming), but it's simple to add a final check that the pool resource exists - if it doesn't, then we're definitely doomed.} else {_VCRT_EXPORT_STDworkarounds.std.ixxwas explicitly including<yvals_core.h>for the workaround, which is no longer necessary.'std'. Specialization of'std::invoke_result_t'with arguments'_Fn, _Ty...'".is_trivialwith__is_trivially_constructible(_Ty) && __is_trivially_copyable(_Ty)isn't a transparent workaround - it causes DevCom-1586179 VSO-1439353 "std::is_trivialincorrectly fails because of protected defaulted default constructor". Let's just use the dedicated compiler builtin, and blame the compiler if it goes wrong - we've moved away from attempting to compensate for compiler deficiencies in type traits.ranges::danglingis non-trivial (properly detected by Clang), but (portably) trivially default constructible.