Skip to content

Update to C++20 - #12656

Merged
Chiara Mooney (chiaramooney) merged 4 commits into
microsoft:mainfrom
chiaramooney:cm-test-20
Feb 1, 2024
Merged

Chiara Mooney (chiaramooney) merged 4 commits into
microsoft:mainfrom
chiaramooney:cm-test-20

Conversation

@chiaramooney

@chiaramooney Chiara Mooney (chiaramooney) commented Jan 31, 2024 •

Copy link
Copy Markdown
Contributor

Description

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

Update to C++20.

Resolves #12429

What

Turn C++20 on for vnext.

Screenshots

Add any relevant screen captures here from before or after your changes.

Changelog

Should this change be included in the release notes: Yes

Move React Native Windows to default to C++20.

Microsoft Reviewers: Open in CodeFlow
@chiaramooney
Chiara Mooney (chiaramooney) requested a review from a team as a code owner January 31, 2024 00:04
%(AdditionalIncludeDirectories);
</AdditionalIncludeDirectories>
<AdditionalOptions>%(AdditionalOptions) /Zc:strictStrings /bigobj</AdditionalOptions>
<AdditionalOptions>/await %(AdditionalOptions) /Zc:strictStrings /bigobj</AdditionalOptions>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: but put everything either before or after the existing additional options

Suggested change
<AdditionalOptions>/await %(AdditionalOptions) /Zc:strictStrings /bigobj</AdditionalOptions>
<AdditionalOptions>%(AdditionalOptions) /await /Zc:strictStrings /bigobj</AdditionalOptions>
<!-- When bumping the Folly version, be sure to bump the git hash of that version's commit and build Folly.vcxproj (to update its cgmanifest.json) too. -->
<FollyVersion>2023.10.16.00</FollyVersion>
<FollyCommitHash>3da4d3ccc4ea69bc10800754816e339d912736bd</FollyCommitHash>
<FollyVersion>2023.11.06.00</FollyVersion>

@NickGerleman Nick Gerleman (NickGerleman) Feb 1, 2024 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chiaramooney
Chiara Mooney (chiaramooney) merged commit adefdee into microsoft:main Feb 1, 2024
Julio César Rocha (JunielKatarn) pushed a commit to jurocha-ms/react-native-windows that referenced this pull request Feb 9, 2024
* Update to C++20

* Change files

* Fix Desktop Builds

* Address Feedback
Julio César Rocha (JunielKatarn) pushed a commit to jurocha-ms/react-native-windows that referenced this pull request Feb 9, 2024
* Update to C++20

* Change files

* Fix Desktop Builds

* Address Feedback
This was referenced Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants