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

Defer cpp2 union move compilations #617

Closed

Conversation

mszabo-wikia
Copy link
Contributor

The move accessors in generated cpp2 thrift code suffer from an eager compilation issue similar to the one reported for union setters in #508, when compiling with clang / libstdc++
(https://godbolt.org/z/KGr9cM5n5).

As a fix, make these accessors templated, like the field ref accessors, to defer compilation.

The move accessors in generated cpp2 thrift code suffer from an
eager compilation issue similar to the one reported for union setters
in facebook#508, when compiling with clang / libstdc++
(https://godbolt.org/z/KGr9cM5n5).

As a fix, make these accessors templated, like the field ref accessors,
to defer compilation.
@mszabo-wikia
Copy link
Contributor Author

facebook/folly#2283 should address the CI error.

@facebook-github-bot
Copy link
Contributor

@vitaut has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@vitaut merged this pull request in f7f5cea.

@vitaut
Copy link
Contributor

vitaut commented Aug 23, 2024

Merged, thanks!

@mszabo-wikia
Copy link
Contributor Author

Thanks for the review!

facebook-github-bot pushed a commit to facebook/hhvm that referenced this pull request Sep 11, 2024
Summary:
The move accessors in generated cpp2 thrift code suffer from an eager compilation issue similar to the one reported for union setters in facebook/fbthrift#508, when compiling with clang / libstdc++
(https://godbolt.org/z/KGr9cM5n5).

As a fix, make these accessors templated, like the field ref accessors, to defer compilation.

X-link: facebook/fbthrift#617

Reviewed By: thedavekwon

Differential Revision: D61673446

Pulled By: vitaut

fbshipit-source-id: fb37f4046207fc19f2d2a438b5b565e686987930
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants