Skip to content
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

C++ 20 all the things #39454

Closed
wants to merge 1 commit into from

Conversation

NickGerleman
Copy link
Contributor

Summary:
Textual replacement of C++ 17 with C++ 20, to see if we can start building with it everywhere.

Changelog: [Internal]

Differential Revision: D49271685

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Sep 14, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 14, 2023
Summary:
Pull Request resolved: facebook#39454

Textual replacement of C++ 17 with C++ 20, to see if we can start building with it everywhere.

Changelog: [Internal]

Differential Revision: D49271685

fbshipit-source-id: 48798e550adb4334df2732e100ffb2fc1afdeb5c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 14, 2023
Summary:
Pull Request resolved: facebook#39454

Build with C++ 20 everywhere. Updates folly by three months to avoid a warning (we are still way behind). Replaces a deprecated atomic usage with equivalent.

Changelog: [Internal]

Differential Revision: D49271685

fbshipit-source-id: 57e5d7e1dae802ce61e942e8c2975d59b0f03d49
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 14, 2023
Summary:
Pull Request resolved: facebook#39454

Build with C++ 20 everywhere. Updates folly by three months to avoid a warning (we are still way behind). Replaces a deprecated atomic usage with equivalent.

Changelog: [Internal]

Differential Revision: D49271685

fbshipit-source-id: c5c176a612b788e9611df024182347de468d697f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 14, 2023
Summary:
Pull Request resolved: facebook#39454

1. Build with C++ 20 everywhere.
2. Update folly by three months to avoid a warning (we are still multiple years behind).
3. Adds some headers now included to the folly podspec
4. Replaces a deprecated atomic usage with equivalent.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685

fbshipit-source-id: 98e754bb5f9fa063c553e3a018e6dbd69de1063b
@analysis-bot
Copy link

analysis-bot commented Sep 14, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,342,064 +12,659
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,580,826 +12,650
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 3b27c39
Branch: main

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 14, 2023
Summary:
Pull Request resolved: facebook#39454

1. Build with C++ 20 everywhere.
2. Update folly by three months to avoid a warning (we are still multiple years behind).
3. Adds some headers now included to the folly podspec
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes deprecated implicit capturing `this` by value in lambdas

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685

fbshipit-source-id: bc0707df5451cad3ca495e716a245a648f6dba47
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 14, 2023
Summary:
Pull Request resolved: facebook#39454

1. Build with C++ 20 everywhere.
2. Update folly by three months to avoid a warning (we are still multiple years behind).
3. Adds some headers now included to the folly podspec
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes deprecated implicit capturing `this` by value in lambdas

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685

fbshipit-source-id: f3fcecd79409a01c63e3c96e7e582cd87292432f
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 14, 2023
Summary:
Pull Request resolved: facebook#39454

1. Build with C++ 20 everywhere.
2. Update folly by three months to avoid a warning (we are still multiple years behind).
3. Adds some headers now included to the folly podspec
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes deprecated implicit capturing `this` by value in lambdas

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685

fbshipit-source-id: 9e5d74f4dd404591be8383460a92447231130235
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 15, 2023
Summary:

1. Build with C++ 20 everywhere.
2. Update folly to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Adds some headers now included to the folly podspec
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes deprecated implicit capturing `this` by value in lambdas

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 15, 2023
Summary:

1. Build with C++ 20 everywhere.
2. Update folly to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 15, 2023
Summary:

1. Build with C++ 20 everywhere.
2. Update folly to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 15, 2023
Summary:

1. Build with C++ 20 everywhere.
2. Update folly in OSS build to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 15, 2023
Summary:

1. Build with C++ 20 everywhere.
2. Update folly in OSS build to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 15, 2023
Summary:

1. Build with C++ 20 everywhere.
2. Update folly in OSS build to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

Summary:

1. Build with C++ 20 everywhere.
2. Update folly in OSS build to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D49271685

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 15, 2023
Summary:
Pull Request resolved: facebook#39454

1. Build with C++ 20 everywhere.
2. Update folly by three months to avoid a warning (we are still multiple years behind).
3. Adds some headers now included to the folly podspec
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes deprecated implicit capturing `this` by value in lambdas

Changelog: [Internal]

Differential Revision: https://www.internalfb.com/diff/D49271685?entry_point=27

fbshipit-source-id: ea627dcc0d6ed94faac8b152ff82e000b11b53b2
NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Sep 15, 2023
Summary:
Pull Request resolved: facebook#39454

1. Build with C++ 20 everywhere.
2. Update folly by three months to avoid a warning (we are still multiple years behind).
3. Adds some headers now included to the folly podspec
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes deprecated implicit capturing `this` by value in lambdas

Changelog: [Internal]

Differential Revision: https://www.internalfb.com/diff/D49271685?entry_point=27

fbshipit-source-id: 14b8a0e96ef5b2e493380fe45a12eda8a581f2d5
@github-actions
Copy link

This pull request was successfully merged by @NickGerleman in 17154a6.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Sep 15, 2023
blakef pushed a commit to blakef/template that referenced this pull request Feb 28, 2024
Summary:
Pull Request resolved: facebook/react-native#39454

1. Build with C++ 20 everywhere.
2. Update folly in OSS build to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685

fbshipit-source-id: 16610f7bcd1032d5796cc11f1cfa92a33d8c2593

Original: facebook/react-native@17154a6
blakef pushed a commit to react-native-community/template that referenced this pull request Feb 29, 2024
Summary:
Pull Request resolved: facebook/react-native#39454

1. Build with C++ 20 everywhere.
2. Update folly in OSS build to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685

fbshipit-source-id: 16610f7bcd1032d5796cc11f1cfa92a33d8c2593

Original-Commit: facebook/react-native@17154a6
blakef pushed a commit to react-native-community/template that referenced this pull request Feb 29, 2024
Summary:
Pull Request resolved: facebook/react-native#39454

1. Build with C++ 20 everywhere.
2. Update folly in OSS build to avoid a warning, and let us opt out of heavy bits required for supporting coroutines (we are still more than a year behind).
3. Update the folly podspec for the new version of folly
4. Update the many, many, copy/pasted header search paths for folly dependencies to be able to resolve fmt, now exposed to folly headers
4. Replaces a deprecated atomic usage with equivalent.
5. Fixes a deprecated implicit capturing `this` by value in lambda (same behavior, added a TODO because it seems sus)

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D49271685

fbshipit-source-id: 16610f7bcd1032d5796cc11f1cfa92a33d8c2593

Original-Commit: facebook/react-native@17154a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants