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 makeFormatToRule for Windows paths #16

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

elliotgoodrich
Copy link
Owner

type cannot handle forward slashes in the path passed to it and requires backslashes. In order to keep ninjutsu-build's preference for forward slashes everywhere, we create an additional variable for Windows and pass in a copy of the in variable but using forward slashes. The ninja manual recommends creating additional variables if you need a different version of $in (or $out).

`type` cannot handle forward slashes in the path passed to it and
requires backslashes.  In order to keep `ninjutsu-build`'s preference
for forward slashes everywhere, we create an additional variable for
Windows and pass in a copy of the `in` variable but using forward
slashes.  The ninja manual recommends creating additional variables if
you need a different version of `$in` (or `$out`).
@elliotgoodrich elliotgoodrich merged commit 4052e02 into main Mar 7, 2024
9 checks passed
@elliotgoodrich elliotgoodrich deleted the fix-formatTo-for-windows-paths branch March 7, 2024 10:16
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.

1 participant