-
Notifications
You must be signed in to change notification settings - Fork 502
Can not use cc in projects located at a path with a space in it on Windows (using msvc) #348
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
Comments
Related rustlang issue is here: rust-lang/rust#52319 |
Thanks for the report! That issue does seems whitespace related yeah but I can't quite tell myself unfortunately what the bug is or how it'd be fixed :( The issue could also just be with rust-lang/rust and various submodules it builds there, but I'm not so sure. |
I think the issue you're seeing is definitely a bug in |
I was hoping there's somewhere in cc-rs there's some code that constructs the prefix string, and it does so in a whitespace-bugged way that causes the bug in both nmake and cl.exe. I fixed the other bug, so maybe I'll find some time to look at |
Ah unfortunately not that I know of :( I was under the impression we correctly handled this everywhere... |
I'm going to close this since I think it's just an internal bug in this crate's test suite, and I think we're probably just going to say "that doesn't work", but a PR to fix it is always welcome! |
I found this bug whilst trying to compile
rustlang/rust
on Windows. It crashes because something goes wrong with the prefix for the include directories. Incc-rs
it crashes with a slightly different error:This is easily reproduced like so:
I tried to make a test for this, but I failed, apparently it's not a bug in the way the
.include()
method works as including paths with a space in it works fine. It must have to do something with the way the project prefix is made or used.The text was updated successfully, but these errors were encountered: