Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPoint PATH to toolchain/bin on Windows #402
Conversation
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
Or alternately we might append both, but in that order. By appending we could let users influence the binary lookup with |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
(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) |
This comment has been minimized.
This comment has been minimized.
|
I'm of course fine with whatever you think the correct behavior for the rest of the system is, as long as |
This comment has been minimized.
This comment has been minimized.
|
@SpaceManiac let's rename |
SpaceManiac
force-pushed the
SpaceManiac:windows-path
branch
from
e001269
to
d32d044
May 12, 2016
This comment has been minimized.
This comment has been minimized.
|
There's a second pass, |
brson
force-pushed the
rust-lang:master
branch
2 times, most recently
from
1acdeb2
to
9830d33
May 12, 2016
This comment has been minimized.
This comment has been minimized.
|
lgtm. Thanks. Just waiting for the build to pass. |
This comment has been minimized.
This comment has been minimized.
|
The appveyor build was cancelled, can someone restart it? |
SpaceManiac
force-pushed the
SpaceManiac:windows-path
branch
from
d32d044
to
82165fb
May 16, 2016
brson
merged commit 1a335ec
into
rust-lang:master
May 17, 2016
This comment has been minimized.
This comment has been minimized.
|
Thanks @SpaceManiac! |
SpaceManiac commentedMay 6, 2016
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