Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@gw280
Copy link
Contributor

@gw280 gw280 commented Jan 30, 2020

The clang toolchain for Fuchsia doesn't like this lambda capture to be explicit when iphone_xs_times is a constexpr.

@gw280 gw280 requested a review from iskakaushik January 30, 2020 21:55
@auto-assign auto-assign bot requested a review from cbracken January 30, 2020 21:55
@gw280
Copy link
Contributor Author

gw280 commented Jan 30, 2020

This is a dupe of #15450 but this fix should work in all cases. The fix in the other PR fails where the file currently compiles (as other compilers want the lambda to be explicitly captured)

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

lgtm. Can you add (a) file a bug against the compiler team and (b) add a TODO that links that bug so we can revert to constexpr when the bug has been fixed in the toolchain.

@gw280
Copy link
Contributor Author

gw280 commented Jan 30, 2020

An update, after talking with some compiler folks: Fuchsia's toolchain is much more up to date than e.g. the host toolchain on my Linux machine (11.x vs. 8.x). The compiler's behaviour here changed and the best workaround here is to use static constexpr.

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

re-lgtm post-static :)

@gw280 gw280 merged commit 6b8c150 into flutter:master Jan 31, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 31, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 31, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 31, 2020
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jan 31, 2020
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jan 31, 2020
flutter/engine@804dca6...6b8c150

git log 804dca6..6b8c150 --first-parent --oneline
2020-01-31 [email protected] Use static constexpr for iphone_xs_times (flutter/engine#16264)
2020-01-31 [email protected] Started coalescing updates to viewport metrics after foregrounding the app. (flutter/engine#16270)
2020-01-31 [email protected] Remove superfluous INFO logs from //flutter/runtime. (flutter/engine#16280)


If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected] on the revert to ensure that a human
is aware of the problem.

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
NoamDev pushed a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
NoamDev added a commit to NoamDev/engine that referenced this pull request Feb 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants