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

Escape spaces in depfile with backslashes. #152

Closed
wants to merge 1 commit into from

Conversation

ColinFinck
Copy link
Contributor

@ColinFinck ColinFinck commented Oct 21, 2024

This matches how Linux escapes spaces in paths.
The same syntax is also used by other build tools that output depfiles, e.g. https://github.com/rust-lang/cargo/blob/edd36eba5e0d6e0cfcb84bd0cc651ba8bf5e7f83/src/cargo/core/compiler/output_depinfo.rs#L19

CC @dgibson

@dgibson
Copy link
Owner

dgibson commented Oct 22, 2024

The change itself looks good, but I'll need a Signed-off-by line in order to apply it. See CONTRIBUTING.md for details.

This matches how Linux escapes spaces in paths.
The same syntax is also used by other build tools that output depfiles,
e.g. https://github.com/rust-lang/cargo/blob/edd36eba5e0d6e0cfcb84bd0cc651ba8bf5e7f83/src/cargo/core/compiler/output_depinfo.rs#L19

Signed-off-by: Colin Finck <[email protected]>
@ColinFinck
Copy link
Contributor Author

@dgibson Thank you very much for the quick response! I've just amended my commit to include a Signed-off-by line (and even a GPG signature :))

@dgibson
Copy link
Owner

dgibson commented Oct 24, 2024

Merged, thanks.

@dgibson dgibson closed this Oct 24, 2024
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