We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
find_libdir()
1 parent 4e0c6db commit 8cf50bcCopy full SHA for 8cf50bc
src/librustc/metadata/filesearch.rs
@@ -258,7 +258,6 @@ pub fn rust_path() -> Vec<PathBuf> {
258
}
259
260
// The name of the directory rustc expects libraries to be located.
261
-#[cfg(unix)]
262
fn find_libdir(sysroot: &Path) -> String {
263
// FIXME: This is a quick hack to make the rustc binary able to locate
264
// Rust libraries in Linux environments where libraries might be installed
@@ -292,11 +291,6 @@ fn find_libdir(sysroot: &Path) -> String {
292
291
293
294
295
-#[cfg(windows)]
296
-fn find_libdir(_sysroot: &Path) -> String {
297
- "lib".to_string()
298
-}
299
-
300
// The name of rustc's own place to organize libraries.
301
// Used to be "rustc", now the default is "rustlib"
302
pub fn rustlibdir() -> String {
0 commit comments