Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #1093 - mcgoo:rustlib_path_windows, r=Diggsey
Add the rust lib dir (containing std-<hash>.dll) to the path on windows I'm not sure if this is the right thing or not, but this fixes some of rust-lang/cargo#3394. My apologies if it undoes earlier path related fixes. The dylib tests in the cargo testsuite work. `cargo test` of a dylib crate works. It does nothing for the `cargo install` case. It adds sysroot/bin to the path on Windows which fixes finding libstd. A side effect of this is that rustc.exe is directly in the path although it is after CARGO_HOME/bin so the shim should be found first. The behavior of prepend_path in case of a corrupt path is changed - it used to clobber the existing path with the new path, and now it will leave leave the existing path unchanged. It leaves LD_LIBRARY_PATH set on Windows also as I believe it is used by MinGW.
- Loading branch information