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

[Impeller] Process ImpellerC include paths the same way as output paths #37335

Merged
merged 1 commit into from
Nov 5, 2022

Conversation

bdero
Copy link
Member

@bdero bdero commented Nov 4, 2022

Without having reproduced the problem yet, I'm hoping this will fix the Windows test failure in flutter/flutter#114214. Either way, this refactor simplifies an ugly aspect of the code.

This moves our "works everywhere" solution for utf8-respecting paths to a utility method, and passes include input paths through it.

History of how we got here:
#36158
#36223

@bdero bdero self-assigned this Nov 4, 2022
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@@ -11,9 +11,13 @@
namespace impeller {
namespace compiler {

std::string Utf8FromPath(const std::filesystem::path& path) {
return reinterpret_cast<const char*>(path.stem().u8string().c_str());
Copy link
Member

Choose a reason for hiding this comment

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

Is the stem() part right everywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope. Fixed.

@bdero bdero added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 4, 2022
@auto-submit auto-submit bot merged commit 223a485 into flutter:main Nov 5, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 5, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 5, 2022
…114732)

* aeae6afb7 Roll Dart SDK from b2aad7caafc9 to d97d5ad98893 (1 revision) (flutter/engine#37333)

* 396be860f [Impeller] Remove cached pipelines when RuntimeStage is hot reloaded (flutter/engine#37307)

* 223a485ce Handle include paths the same way as output paths (flutter/engine#37335)
schwa423 pushed a commit to schwa423/engine that referenced this pull request Nov 16, 2022
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…lutter#114732)

* aeae6afb7 Roll Dart SDK from b2aad7caafc9 to d97d5ad98893 (1 revision) (flutter/engine#37333)

* 396be860f [Impeller] Remove cached pipelines when RuntimeStage is hot reloaded (flutter/engine#37307)

* 223a485ce Handle include paths the same way as output paths (flutter/engine#37335)
gspencergoog pushed a commit to gspencergoog/flutter that referenced this pull request Jan 19, 2023
…lutter#114732)

* aeae6afb7 Roll Dart SDK from b2aad7caafc9 to d97d5ad98893 (1 revision) (flutter/engine#37333)

* 396be860f [Impeller] Remove cached pipelines when RuntimeStage is hot reloaded (flutter/engine#37307)

* 223a485ce Handle include paths the same way as output paths (flutter/engine#37335)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller needs tests
Projects
No open projects
Archived in project
3 participants