Point PATH to toolchain/bin on Windows#402
Point PATH to toolchain/bin on Windows#402brson merged 1 commit intorust-lang:masterfrom SpaceManiac:windows-path
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_privatecrate such as libsyntax.Prior art: brson/multirust#99