-
Notifications
You must be signed in to change notification settings - Fork 60
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
link_deps() behaves poorly with spaces in paths #81
Comments
Is this in
gives:
Could the problem be |
Well, the problem starts from using Note that your So |
Wait, so it was working with paths with spaces before introducing Goes looking at the referenced PR Ah, I think I see it. In the PR:
I think the problem is Thanks for reporting this! I think it might be a good change to push back to rustc's compiletest. |
Right. We were only adding the cargo target dirs before, not all of |
It doesn't yet behave well with spaces, common in Windows `PATH`. Ref: Manishearth/compiletest-rs#81
I'll add it as a caveat to using |
Fortunately, this is really easy to reproduce, even on Linux. Just create a directory with spaces in the name and run |
When using `link_deps()` full paths are added to target_rustcflags, which doesn't work well with split_maybe_args(), as it splits on space. Fixes #81
By working around Manishearth/compiletest-rs#81 Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
This looks like it's still broken in the latest release of compiletest-rs. Has there been any progress, or maybe a documented workaround? This breaks compiletest on Windows completely. |
@LPGhatguy It has not been fixed yet. If you read the discussion, I think we worked out what the correct fix should be, but it is potentially a rather big breaking change, and I haven't had time to sit down and implement it. |
Spaced paths are common on Windows, e.g. "C:\Program Files", but this is getting broken into separate arguments. Given "-L C:\Program Files...", rustc says "error: multiple input filenames provided", as "Files..." is considered separate from the "-L".
Ref: https://ci.appveyor.com/project/cuviper/rayon/build/1.0.14/job/k65psqsgq50nt4dy
The text was updated successfully, but these errors were encountered: