File tree 2 files changed +3
-6
lines changed
tests/run-make/no-duplicate-libs
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
4
4
extern "C" {
5
5
fn bar ( ) ;
6
6
}
Original file line number Diff line number Diff line change 9
9
//@ ignore-cross-compile
10
10
// Reason: the compiled binary is executed
11
11
12
- //@ ignore-msvc
13
- // Reason: native compilation results in an unresolved external symbol
14
-
15
12
use run_make_support:: { build_native_static_lib, run, rustc} ;
16
13
17
14
fn main ( ) {
You can’t perform that action at this time.
0 commit comments