-
Notifications
You must be signed in to change notification settings - Fork 249
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
Ensure Windows paths provided to CMake contain forward slashes only #807
Ensure Windows paths provided to CMake contain forward slashes only #807
Conversation
c7337fc
to
7db5217
Compare
@jsharpe @UebelAndre May I please request a review of this PR 😁 |
Sorry for the delay. Can you maybe share the callstack of some issue this is solving? So I understand the issue? |
@UebelAndre Apologies for the delay in getting back to you. I am trying to build
Notice how the paths start with backward slashes, i.e. `C:\msys64\home........". zlib fails to build because cmake reports a syntax error in
This PR changes rules_foreign_cc so that all backslashes in paths are replaced with forward slashes, which resolves the issue. Hope that made sense |
CMake will fail if the toolchain fail generated by rules_foreign_cc contains backslashes.
7db5217
to
169167b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think this looks fine to me but would like @jsharpe to also take a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CMake will fail if the cross tool file generated by rules_foreign_cc contains backslashes.