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

Don't constexpr iphone_xs_times#16264

Merged
gw280 merged 3 commits into
flutter-team-archive:masterfrom
gw280:gwright-input-test-fix
Jan 31, 2020
Merged

Don't constexpr iphone_xs_times#16264
gw280 merged 3 commits into
flutter-team-archive:masterfrom
gw280:gwright-input-test-fix

Conversation

@gw280

@gw280 gw280 commented Jan 30, 2020

Copy link
Copy Markdown
Contributor

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

gw280 commented Jan 30, 2020

Copy link
Copy Markdown
Contributor Author

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)

Comment thread shell/common/input_events_unittests.cc Outdated

@cbracken cbracken left a comment

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.

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

gw280 commented Jan 30, 2020

Copy link
Copy Markdown
Contributor Author

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.

@cbracken cbracken left a comment

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.

re-lgtm post-static :)

@gw280 gw280 merged commit 6b8c150 into flutter-team-archive: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-team-archive/engine@804dca6...6b8c150

git log 804dca6..6b8c150 --first-parent --oneline
2020-01-31 gw280@google.com Use static constexpr for iphone_xs_times (flutter-team-archive/engine#16264)
2020-01-31 30870216+gaaclarke@users.noreply.github.com Started coalescing updates to viewport metrics after foregrounding the app. (flutter-team-archive/engine#16270)
2020-01-31 chinmaygarde@google.com Remove superfluous INFO logs from //flutter/runtime. (flutter-team-archive/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 cbracken@google.com 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

Development

Successfully merging this pull request may close these issues.

3 participants