-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Toolset update: VS 2022 17.10 Preview 3 #4576
Toolset update: VS 2022 17.10 Preview 3 #4576
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_trivial
to 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).pip
to 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-AzVMRunCommand
gives us, and everything works.exit
to improve the transcript.curl.exe
./quiet
instead of/passive
, and don't install docs./quiet
means "to install/uninstall without displaying any UI"/passive
means "to display progress without requiring user interaction"$ProgressPreference
to the top, drop duplicate$ErrorActionPreference
.Get-SecureRandom
.System.Security.Cryptography.RandomNumberGenerator
machinery. SeeGet-SecureRandom
docs.Update-AzConfig
itself.PrintMsiExitCodeMessage
.cmd.exe /c
.DownloadAndInstall
.psutil
and--timeout=240
.psutil
, attempting to use--timeout
emits:New-AzGalleryImageVersion
needs-SourceImageVMId
in 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_STD
workarounds.std.ixx
was 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_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.ranges::dangling
is non-trivial (properly detected by Clang), but (portably) trivially default constructible.