Enable msvc for no-duplicate-libs

This commit is contained in:
Chris Denton 2024-08-04 02:46:04 +00:00
parent b46237bdd7
commit 2e5341aecd
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE
2 changed files with 3 additions and 6 deletions

View File

@ -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();
}

View File

@ -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() {