Skip to content

Commit 2e5341a

Browse files
committed
Enable msvc for no-duplicate-libs
1 parent b46237b commit 2e5341a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

tests/run-make/no-duplicate-libs/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
44
extern "C" {
55
fn bar();
66
}

tests/run-make/no-duplicate-libs/rmake.rs

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
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-
1512
use run_make_support::{build_native_static_lib, run, rustc};
1613

1714
fn main() {

0 commit comments

Comments
 (0)