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

PackageLoading: anchor relative paths for Windows #6345

Merged
merged 1 commit into from Mar 29, 2023

Conversation

compnerd
Copy link
Collaborator

We currently cannot use .. as a header search path for Windows even though it may be contained within the package root. This is due to the fact that the path itself was unanchored, and a raw .. would be treated as the drive root which will almost always be outside of the package root. Construct the absolute path relative to the target root rather than appending, permitting us to form a well-formed path which can be checked for ancestry.

@compnerd
Copy link
Collaborator Author

@swift-ci please test

@compnerd
Copy link
Collaborator Author

@swift-ci please smoke test

1 similar comment
@compnerd
Copy link
Collaborator Author

@swift-ci please smoke test

We currently cannot use `..` as a header search path for Windows even
though it may be contained within the package root.  This is due to the
fact that the path itself was unanchored, and a raw `..` would be
treated as the drive root which will almost always be outside of the
package root.  Construct the absolute path relative to the target root
rather than appending, permitting us to form a well-formed path which
can be checked for ancestry.
@compnerd
Copy link
Collaborator Author

@swift-ci please smoke test

@compnerd
Copy link
Collaborator Author

@swift-ci please test Windows platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants