File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
tests/run-make/no-duplicate-libs Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- #[ link( name = "foo" ) ] // linker should drop this library, no symbols used
2- #[ link( name = "bar" ) ] // symbol comes from this library
3- #[ link( name = "foo" ) ] // now linker picks up `foo` b/c `bar` library needs it
1+ #[ link( name = "foo" , kind = "static" ) ] // linker should drop this library, no symbols used
2+ #[ link( name = "bar" , kind = "static" ) ] // symbol comes from this library
3+ #[ link( name = "foo" , kind = "static" ) ] // now linker picks up `foo` b/c `bar` library needs it
44extern "C" {
55 fn bar ( ) ;
66}
Original file line number Diff line number Diff line change 99//@ ignore-cross-compile
1010// Reason: the compiled binary is executed
1111
12- //@ ignore-msvc
13- // Reason: native compilation results in an unresolved external symbol
14-
1512use run_make_support:: { build_native_static_lib, run, rustc} ;
1613
1714fn main ( ) {
You can’t perform that action at this time.
0 commit comments