-
Notifications
You must be signed in to change notification settings - Fork 892
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
Point PATH to toolchain/bin on Windows #402
Conversation
This Related to this. Right now rustup requires either What if we prepended
(I see that last time I wanted to prepend this path instead, but don't recall the reasoning). cc @Diggsey I've tweaked, and broke and unbroke these env vars a lot. Seeing if you have opinions. |
Or alternately we might append both, but in that order. By appending we could let users influence the binary lookup with |
I can't think of a better option. Appending both paths but in the correct order seems like the closest we're going to get. |
(if the wrong rustc is on the PATH earlier, then that's a configuration error anyway, and rustc wouldn't be proxied correctly to start with, so I'm not too worried about supporting that usecase, whereas I am interested in supporting an intentional override via PATH) |
I'm of course fine with whatever you think the correct behavior for the rest of the system is, as long as |
@SpaceManiac let's rename |
There's a second pass, |
1acdeb2
to
9830d33
Compare
lgtm. Thanks. Just waiting for the build to pass. |
The appveyor build was cancelled, can someone restart it? |
Thanks @SpaceManiac! |
Yes, this again. On Windows, LD_LIBRARY_PATH and DYLD_LIBRARY_PATH are not obeyed, and .dlls are searched for in the PATH (and located in the bin directory).
This becomes relevant when attempting to link to a
rustc_private
crate such as libsyntax.Prior art: brson/multirust#99