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

Fix path issue for Windows #313

Merged
merged 42 commits into from
Aug 3, 2021
Merged

Fix path issue for Windows #313

merged 42 commits into from
Aug 3, 2021

Conversation

cmichi
Copy link
Collaborator

@cmichi cmichi commented Jul 29, 2021

Closes #312.

@cmichi cmichi marked this pull request as ready for review August 3, 2021 09:30
@cmichi cmichi requested a review from ascjones August 3, 2021 09:30
Copy link
Collaborator

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

LGTM

#[cfg(windows)]
// On Windows path separators are `\`, hence we need to replace the `/` in
// e.g. `src/lib.rs`.
let path_str = &path_str.replace("/", "\\");
Copy link
Collaborator

Choose a reason for hiding this comment

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

@cmichi cmichi merged commit c76ffc6 into master Aug 3, 2021
@cmichi cmichi deleted the cmichi-fix-path-issue-on-windows branch August 3, 2021 15: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.

Not compiling on windows when uses a path.
2 participants