-
Notifications
You must be signed in to change notification settings - Fork 6k
Don't constexpr iphone_xs_times #16264
Conversation
|
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) |
cbracken
left a comment
There was a problem hiding this 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.
|
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 |
cbracken
left a comment
There was a problem hiding this 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 :)
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
This reverts commit cd5dff5.
The clang toolchain for Fuchsia doesn't like this lambda capture to be explicit when
iphone_xs_timesis a constexpr.