Skip to content

ASTGen: account for alternate path separators #68291

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

Merged
merged 2 commits into from
Sep 3, 2023

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Sep 2, 2023

Windows supports \ and / as path separators. Account for both in computing the basename. This repairs a few test failures on Windows.

@compnerd
Copy link
Member Author

compnerd commented Sep 2, 2023

@swift-ci please test

@compnerd compnerd mentioned this pull request Sep 2, 2023
9 tasks
Windows supports `\` and `/` as path separators.  Account for both in
computing the basename.  This repairs a few test failures on Windows.
There is no real reason to split the behaviour here as this is a file
system primitive.  Special case Apple and Linux platforms to address
feedback.
@compnerd
Copy link
Member Author

compnerd commented Sep 3, 2023

@swift-ci please test

@compnerd compnerd merged commit 550a0ce into swiftlang:main Sep 3, 2023
@compnerd compnerd deleted the split-em-up branch September 3, 2023 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants