-
Notifications
You must be signed in to change notification settings - Fork 37.7k
cmake: Restrict MSVC-specific workaround to affected versions #32499
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
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32499. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
No objection, but I guess it also seems fine to wait a few weeks until GitHub bumps their Windows image and then just bump the msvc minimum required version. |
Do we really need to force Windows developers to update their toolchains in this case? |
I expect the number of Windows devs is still small enough to just ping and ask them, when the time has come. |
Friendly ping @davidgumberg @hodlinator @sipsorcery :) |
utACK 6779430. 17.14 is still in preview so can't test yet (would rather avoid the >10GB download and install for the sake of a week or two). |
From https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes:
|
Just checked again (1 hour later) and installing 17.14 now. Seems it was just my VS Installer instance being crap and telling me there were no new updates and offering 17.14 as a preview. |
nit: Should PR description include "ref #31303"? Tried removing the
...did not encounter the internal compiler error? Couldn't repro the ICE from https://developercommunity.visualstudio.com/t/C1001:-Internal-compiler-error-with-st/10830350 either:
|
# - https://github.com/bitcoin/bitcoin/issues/31303 | ||
# - https://developercommunity.visualstudio.com/t/C1001:-Internal-compiler-error-with-st/10830350 | ||
# Fixed in Visual Studio 2022 version 17.14. | ||
set(compiler_has_bug "$<AND:$<CXX_COMPILER_ID:MSVC>,$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,19.42>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,19.44>>") |
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.
Question: Where do these version numbers come from? Is there a reference to correlate the Visual Studio version with the MSVC versions, or did you get these by testing manually?
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.
Self-answered after asking: There is a table on this page https://learn.microsoft.com/en-us/cpp/overview/compiler-versions?view=msvc-170#version-macros
My guess is either that a hotfix was pushed for |
Closing in favour of #32525. |
The recent MSVC version 17.14 has fixed a bug, so we can now enable compilation of
fuzz/utxo_snapshot.cpp
with the updated compiler.