Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-99191: Use correct check for MSVC C++ version support in _wmimodule.cpp#100381

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
zooba merged 2 commits intopython:mainfromCAM-Gerlach:fix-wmimodule-msvc-check
Jan 9, 2023

Conversation

@CAM-Gerlach
Copy link
Member

@CAM-GerlachCAM-Gerlach commentedDec 20, 2022
edited by bedevere-bot
Loading

As discussed in#99191 , inPC/_wmimodule.cpp it currently uses the check#if _MSC_VER >= 1929 to determine if the compiler supports C++20 designated initializers. However, the/std:c++20 flag was only introduced in VS 2019 16.11, but1929 is also the version reported in VS 2019 16.10, which doesn't support that flag. Therefore, the current check will break (resulting in the unsupported C++20 branch being taken and presumably resulting in a compiler error) on VS 16.10 and also if the build is invoked such that\std:c++20 is overridden or not passed.

However, we can instead use_MSVC_LANG >= 202002L to check whether C++20 or greater is actually being targeted.

Fixes#99191

@zoobazooba merged commitf082098 intopython:mainJan 9, 2023
@zooba
Copy link
Member

Thanks!

CAM-Gerlach reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@zoobazoobaAwaiting requested review from zooba

Assignees

No one assigned

Labels

3.12only security fixesbuildThe build process and cross-buildOS-windows

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

/std:c++20 instead of /std:c++17 used for _wmimodule.cpp, but seems unnecessary

3 participants

@CAM-Gerlach@zooba@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp