Skip to content

Commit c90a047

Browse files
committed
rustc: Don't fall back to static libraries when shared isn't found
Nothing on Earth depends on this functionality and it is probably unexpected
1 parent 5b4ab93 commit c90a047

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/rustc/metadata/loader.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,8 @@ fn find_library_crate(sess: session::session, span: span,
4040
let metas = metas;
4141

4242
let nn = default_native_lib_naming(sess, sess.opts.static);
43-
let x =
44-
find_library_crate_aux(sess, span, nn,
45-
metas, hash, sess.filesearch);
46-
if x != none || sess.opts.static { ret x; }
47-
let nn2 = default_native_lib_naming(sess, true);
48-
ret find_library_crate_aux(sess, span, nn2, metas, hash,
49-
sess.filesearch);
43+
find_library_crate_aux(sess, span, nn,
44+
metas, hash, sess.filesearch)
5045
}
5146

5247
fn default_native_lib_naming(sess: session::session, static: bool) ->

0 commit comments

Comments
 (0)