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 upMake Windows directory layout uniform with everything else #29500
Conversation
rust-highfive
assigned
brson
Nov 1, 2015
This comment has been minimized.
This comment has been minimized.
|
How does this interact with library search? In my memory libraries on windows would be put alongside the executable, so meddling with library search paths would be unnecessary. |
This comment has been minimized.
This comment has been minimized.
|
@nagisa I believe this does not change the location of the DLLs for rustc itself, but rather changes the location of rustlib which is the target specific libraries. |
This comment has been minimized.
This comment has been minimized.
|
Yah, dlls are still under |
alexcrichton
reviewed
Nov 2, 2015
| @@ -295,7 +294,7 @@ fn find_libdir(sysroot: &Path) -> String { | |||
|
|
|||
| #[cfg(windows)] | |||
| fn find_libdir(_sysroot: &Path) -> String { | |||
| "bin".to_string() | |||
| "lib".to_string() | |||
This comment has been minimized.
This comment has been minimized.
alexcrichton
Nov 2, 2015
Member
I think with this change we could actually remove the #[cfg] from this function altogether perhaps?
This comment has been minimized.
This comment has been minimized.
vadimcn
Nov 2, 2015
Author
Contributor
Do we need to do lib32/lib64 probing on Windows? I suppose there's no harm in that though...
This comment has been minimized.
This comment has been minimized.
alexcrichton
Nov 2, 2015
Member
Nah not as far as I know at least, it'd basically just be a noop there
This comment has been minimized.
This comment has been minimized.
|
r+ from me, thanks @vadimcn! |
This comment has been minimized.
This comment has been minimized.
|
cc @vosen |
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Nov 3, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
merged commit 8cf50bc
into
rust-lang:master
Nov 3, 2015
arcnmx
added a commit
to arcnmx/rust
that referenced
this pull request
Nov 4, 2015
This comment has been minimized.
This comment has been minimized.
|
I wish I had seen this before it landed. I do not fully understand the fallout offhand. |
This comment has been minimized.
This comment has been minimized.
|
My main concern was how this would affect rust-installer/rustup, but after a quick look I think they will not be impacted. |
vadimcn commentedNov 1, 2015
According to a recent discussion on IRC, there's no good reason for Windows builds to store target libraries under
bin, when on every other platform they are underlib.This might be a [breaking-change] for some users. I am pretty sure VisualRust has that path hard-coded somewhere.
r? @brson