Skip to content

Commit

Permalink
Enable msvc for no-duplicate-libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisDenton committed Aug 4, 2024
1 parent b46237b commit 2e5341a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/run-make/no-duplicate-libs/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#[link(name = "foo")] // linker should drop this library, no symbols used
#[link(name = "bar")] // symbol comes from this library
#[link(name = "foo")] // now linker picks up `foo` b/c `bar` library needs it
#[link(name = "foo", kind = "static")] // linker should drop this library, no symbols used
#[link(name = "bar", kind = "static")] // symbol comes from this library
#[link(name = "foo", kind = "static")] // now linker picks up `foo` b/c `bar` library needs it
extern "C" {
fn bar();
}
Expand Down
3 changes: 0 additions & 3 deletions tests/run-make/no-duplicate-libs/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
//@ ignore-cross-compile
// Reason: the compiled binary is executed

//@ ignore-msvc
// Reason: native compilation results in an unresolved external symbol

use run_make_support::{build_native_static_lib, run, rustc};

fn main() {
Expand Down

0 comments on commit 2e5341a

Please sign in to comment.