-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Process ImpellerC include paths the same way as output paths #37335
Conversation
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. |
impeller/compiler/utilities.cc
Outdated
@@ -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()); |
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.
Is the stem()
part right everywhere?
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.
Nope. Fixed.
5b593ca
to
1c234bd
Compare
…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)
…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)
…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)
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